Read Value for Object in client app
Posted: Fri Nov 24, 2023 3:19 pm
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;
}
}
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;
}
}