report.Print hangs

Stimulsoft Reports.WEB discussion
Post Reply
rierup
Posts: 4
Joined: Thu Mar 12, 2020 4:13 pm

report.Print hangs

Post by rierup »

Dim report As StiReport
StiOptions.Print.AllowUsePaperSizesFromPrinterSettings = False
StiOptions.Print.UsePrinterSettingsEntirely = True
report = New StiReport()
report.Load(_ReportName)
GetReportData(report)
report.Render()
report.Print(False)

When I let run the above code in debugger it works correctly.
But when I publish the code to the webserver an I let run the same code it hangs on the report.Print(False) Statement and the Browser is waiting for an answer from the server.
Lech Kulikowski
Posts: 7338
Joined: Tue Mar 20, 2018 5:34 am

Re: report.Print hangs

Post by Lech Kulikowski »

Hello,

Your code occurs printing on the server side. Not on the client.

Please check the following samples:
https://www.stimulsoft.com/en/samples/a ... -from-code

Thank you.
Post Reply