NullReferenceException on report.Render()

Stimulsoft Reports.WEB discussion
Post Reply
tig
Posts: 3
Joined: Wed Mar 31, 2021 7:39 am

NullReferenceException on report.Render()

Post by tig »

Hi
I have integrated the printing template into the web, and now I try to print on the client. The code is as follows:

Code: Select all

StiReport report = new StiReport();
                            report.LoadPackedReportFromString(flie);
                            report.RenderedPages.Clear();
                            report.RegData(table);
                            report.Render();
                            report.Print();
When the code is executed to "report.Render();" the following exception was thrown:
Message=Object reference not set to an instance of an object.
But when I'm debugging,report is not null,and several properties are null,such as IsFirstPageThrough IsLastPageThrough .
Any idea what i am doing wrong?
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: NullReferenceException on report.Render()

Post by Lech Kulikowski »

Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.
Post Reply