Good morning, is there a way to read the value of an object that is contained in a stimusoft report, the point would be to be able to search for the value of the C# side, of the Text9 object that is in the head of the group to be able to determine if it changed . to be able to apply the following code:
void PDFSplitPage(Stimulsoft.Report.StiReport rep)
{
try
{
var exportReport = new StiReport();
exportReport.NeedsCompiling = false;
exportReport.IsRendered = true;
exportReport.RenderedPages.Clear();
int i = 0;
foreach ( Stimulsoft.Report.Components.StiPage page in rep.RenderedPages)
{
i++;
/*page find value obj Text9*/
exportReport.RenderedPages.Add(page);
string Archivo = $"pdfExport/Pagin{i}.pdf";
exportReport.ExportDocument(StiExportFormat.Pdf, Archivo);
exportReport.RenderedPages.Clear();
if(i==5)
{
break;
}
}
}
catch (Exception ex)
{
throw;
}
}
Read Value for Object in client app
-
- Posts: 1
- Joined: Thu Sep 14, 2023 5:16 pm
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Read Value for Object in client app
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
Re: Read Value for Object in client app
This is a portion of VB code but I think does what you want. Read current value and compares it to previous value.
Code: Select all
'loads report data into table.
Dim dt As DataTable = report.Dictionary.GetDataSet("IS5LicensePermitsRPT").Tables(0)
'set variables
Dim strEmail As String = ""
Dim intIden As Integer = 0
'iterates through rows in data table
For Each dr As DataRow In dt.Rows
Dim dv As DataView = dt.DefaultView
Dim ds As New DataSet
If Not IsDBNull(dr.Item("Iden")) Then
If intIden <> dr.Item("Iden") Then
intIden = dr.Item("Iden")
If Not IsDBNull(dr.Item("email")) Then
strEmail = dr.Item("email").ToString
End If
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Read Value for Object in client app
Hello,
Thank you for the information.
Thank you for the information.