Page 1 of 1

report.Print hangs

Posted: Sat Jun 20, 2020 11:51 am
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.

Re: report.Print hangs

Posted: Mon Jun 22, 2020 8:41 am
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.