Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Stimulsoft Reports.NET discussion
Post Reply
kennynjc
Posts: 34
Joined: Thu Dec 14, 2017 5:24 am

Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Post 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 599 times
Best regards,
Kenny
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Post by Lech Kulikowski »

Hello,

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

Thank you.
kennynjc
Posts: 34
Joined: Thu Dec 14, 2017 5:24 am

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Post 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
Attachments
StimulsoftTestUnit_2023_2.zip
(47.48 KiB) Downloaded 58 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

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

Re: Report Viewer issue after upgraded from 21.3.7 to 23.2.3

Post 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.
Post Reply