Page 1 of 1

Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Posted: Thu May 11, 2023 4:29 am
by kennynjc
Hi,

I had encountered issue after upgraded from 21.3.7 to 23.2.3

I preview the report by call the method ShowWithRibbonGUI()

1st call, the report viewer screen presented correctly

2nd call for thew preview, the new report viewer screen shown correctly but it caused the 1st report viewer screen blank.

It's working in 21.3.7 but after upgrade, faced the above issue.

What can I do?
ShowWithRibbonGUI - Report - Viewer - Previous Report Viewer became empty.jpg
ShowWithRibbonGUI - Report - Viewer - Previous Report Viewer became empty.jpg (206.74 KiB) Viewed 1334 times
Best regards,
Kenny

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Posted: Thu May 11, 2023 8:23 pm
by Lech Kulikowski
Hello,

We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Posted: Fri May 12, 2023 1:42 am
by kennynjc
Hi,

Attached with the sample project.

I'm using VB.NET WinForm with .NET Framework 4.8.
Referencing Stimulsoft .NET 4.7.2 dlls

Code: Select all

Public Class Form1
    Private Sub btnPreview_Click(sender As Object, e As EventArgs) Handles btnPreview.Click
        DoPreviewReport()
    End Sub

    Private Sub DoPreviewReport()
        With RptMaster
            .Compile()
            .ShowWithRibbonGUI()
        End With
    End Sub

    Private Sub btnGenerateData_Click(sender As Object, e As EventArgs) Handles btnGenerateData.Click
        DoGenerateBrand()

    End Sub

    Private Sub DoGenerateBrand()

        DoAddBrand("1", "Adidas")
        DoAddBrand("2", "Nike")
        DoAddBrand("2", "Puma")

    End Sub

    Private Sub DoAddBrand(ByVal paramID As String, ByVal paramName As String)
        Dim oNewRow As DataRow = dsMaster.Tables("Brand").NewRow

        oNewRow("ID") = paramID
        oNewRow("Name") = paramName

        dsMaster.Tables("Brand").Rows.Add(oNewRow)
        dsMaster.Tables("Brand").AcceptChanges()

    End Sub

End Class

regards,
Kenny

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Posted: Mon May 15, 2023 6:10 pm
by Lech Kulikowski
Hello,

We apologize for the delay, but we need some extra time to investigate the issue thoroughly. We will keep you informed about the result as soon as possible.

Thank you for your patience.
#11356

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Posted: Wed May 17, 2023 9:30 pm
by Lech Kulikowski
Hello,

We have added some fixes in that direction, will be available in the next build.

Also, this has never worked. And in general, we do not recommend opening multiple viewers from one instance of the report.
Otherwise, bugs with sharing, etc., may occur. We always recommend creating a separate report instance for each viewer.

Also, in the first post the problem is described slightly differently. That on recompilation it is the first viewer that shows nothing, the second one does.
In the sent project, and in our tests it always did not show the report in the second and subsequent viewers.
Either the project reproduces a bit wrong, or the problem in the first post is not exactly as described.

Thank you.