Page 1 of 1

Prerelease 2016.1.8 ResponseAsPdf

Posted: Fri Apr 22, 2016 3:50 pm
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

Re: Prerelease 2016.1.8 ResponseAsPdf

Posted: Mon Apr 25, 2016 7:44 am
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.

Re: Prerelease 2016.1.8 ResponseAsPdf

Posted: Mon Apr 25, 2016 11:58 am
by ToneCold
Great, thank you!

Re: Prerelease 2016.1.8 ResponseAsPdf

Posted: Mon Apr 25, 2016 11:59 am
by Alex K.
Hello,

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

Thank you.