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

Stimulsoft Reports.NET discussion
Post Reply
mamue
Posts: 4
Joined: Fri Nov 04, 2011 5:54 am
Location: Germany

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

Post 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
mamue
Posts: 4
Joined: Fri Nov 04, 2011 5:54 am
Location: Germany

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

Post 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
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

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

Post 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.
mamue
Posts: 4
Joined: Fri Nov 04, 2011 5:54 am
Location: Germany

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

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

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

Post by Alex K. »

Hello,

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