Page 1 of 1

Read Value for Object in client app

Posted: Fri Nov 24, 2023 3:19 pm
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;
}

}

Re: Read Value for Object in client app

Posted: Fri Nov 24, 2023 10:06 pm
by Lech Kulikowski
Hello,

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

Posted: Mon Nov 27, 2023 7:30 pm
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

Re: Read Value for Object in client app

Posted: Wed Nov 29, 2023 1:00 am
by Lech Kulikowski
Hello,

Thank you for the information.