Read Value for Object in client app

Stimulsoft Reports.WEB discussion
Post Reply
ringerprograms
Posts: 1
Joined: Thu Sep 14, 2023 5:16 pm

Read Value for Object in client app

Post by ringerprograms »

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;
}

}
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Read Value for Object in client app

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.
JohnW
Posts: 103
Joined: Mon Nov 20, 2017 8:29 pm

Re: Read Value for Object in client app

Post by JohnW »

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
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Read Value for Object in client app

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply