Page 1 of 1

Sti...ResponseAsPdf() produces unreadable PDF after update

Posted: Mon Oct 14, 2013 11:33 am
by mamue
Hello,
when i use StiReportResponse.ResponseAsPdf(page, report, true), the browser gets an unreadable PDF document as result.
The problem occurs only on a certain server with Windows Server 2008R2 and IIS 7.5.7600. Used browsers are IE9,IE10 and FF 20.
The Stimulsoft dlls have the Version 2012.3.1500.0.
Before the update, we used Stimulsoft dlls with Version 2010.3.900.0 and everything worked fine.

We use the Stimulsoft Version 2012.3.1500.0 on other servers and workstations without any problems.

Are there any Stimulsoft or IIS parameters which could cause the problem on this server?


With best regards

Martin

Re: Sti...ResponseAsPdf() produces unreadable PDF after upda

Posted: Tue Oct 15, 2013 6:52 am
by mamue
Hello,

we use a gzip compression for all pages of our web application. If i turn off the compression, download of reports works.

With best regards

Martin

Re: Sti...ResponseAsPdf() produces unreadable PDF after upda

Posted: Tue Oct 15, 2013 10:38 am
by Vladimir
Hello,

Please try to set the following static option:

Code: Select all

StiOptions.Web.ClearResponseHeaders = true;
If this does not help, please try the following option:

Code: Select all

StiReportResponse.ResponseCacheTimeout = 0;
Also in this issue can help the following option:

Code: Select all

StiOptions.Web.AllowUseResponseFlush = false;
Thank you.

Re: Sti...ResponseAsPdf() produces unreadable PDF after upda

Posted: Thu Oct 17, 2013 6:57 am
by mamue
Thanks for your quick response.

The combination of StiOptions.Web.ClearResponseHeaders and StiReportResponse.ResponseCacheTimeout with the recommended values solved my problem.
If somebody else has the same problem: don't forget to clear the browser cache, if you change the values of the Stimulsoft properties.

With best regards

Martin

Re: Sti...ResponseAsPdf() produces unreadable PDF after upda

Posted: Fri Oct 18, 2013 8:36 am
by Alex K.
Hello,

Thank you for the information.
Let us know if you need any additional help.