Prerelease 2016.1.8 ResponseAsPdf

Stimulsoft Reports.WEB discussion
Post Reply
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Prerelease 2016.1.8 ResponseAsPdf

Post by ToneCold »

The ResponseAsPdf has changed a bit in this version, in the past I was able to add the below in-order to make the pdf be viewed in the browser (and not just download it):

Response.AddHeader("Content-Disposition", "inline; filename=" & """" & _Report.ReportName & ".pdf" & """")

But as of this prerelease I get the below message:
ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

Is there a way to get around this or have a Stimulsoft option to have it shown inline?

Thanks,
Tony
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Prerelease 2016.1.8 ResponseAsPdf

Post by Vladimir »

Hello Tony,

We have made a revision, now the ResponseAsPdf() method will display the report file inline:
StiReportResponse.ResponseAsHtml(StiWebViewer1.Report, false); // inline
StiReportResponse.ResponseAsHtml(StiWebViewer1.Report); // attachment (by default)

The update will be available in the next prerelease build.

Thank you.
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Re: Prerelease 2016.1.8 ResponseAsPdf

Post by ToneCold »

Great, thank you!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Prerelease 2016.1.8 ResponseAsPdf

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply