ResponseAsPdf Auto Show

Stimulsoft Reports.NET discussion
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

ResponseAsPdf Auto Show

Post by fkmfkm »

Hi,

I am using

Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Me, report)

to show my report as PDF document. Each time the file download dialog will show with three buttons 1. Open 2. Save 3. Cancel.

Question: Is it possible to have it Open automatically without the user clicking Open ?

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

ResponseAsPdf Auto Show

Post by Vital »

Please try use following code:

Code: Select all

Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Me, report, false)
Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

ResponseAsPdf Auto Show

Post by fkmfkm »

Vital,

It does open direcly, but my original page is lost !. Can I have it open as a new page ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

ResponseAsPdf Auto Show

Post by Edward »

Situation with Response from the server is the following:
Client sends request to the server and receives an information as pdf file. So if you need to show a result of rendering in other window, please create another page and this page must to do request to the server and receive as a result our pdf file.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

ResponseAsPdf Auto Show

Post by fkmfkm »

I am also doing some doc viewing from my ASP.NET pages..

I notice that if I set the content type ie. "Application/msword" its able to open it directly. Instead of the normal dialog box, this dialog comes with a checkbox which allow the user the open it directly the next time.

Can this be done in Stimul report ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

ResponseAsPdf Auto Show

Post by Edward »

In the latest prerelease version of the Stimulsoft Reports.Net we've corrected content type as following:
Application/rtf for the Rtf
Application/msword for the Microsoft Word

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

ResponseAsPdf Auto Show

Post by fkmfkm »

How bout for PDF ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

ResponseAsPdf Auto Show

Post by Edward »

Please provide us with more detail about your task.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

ResponseAsPdf Auto Show

Post by fkmfkm »

I mean will you add this also ?

application/pdf ?

So that it can show it automatically ?


PS. Sorry I was away for a few weeks.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

ResponseAsPdf Auto Show

Post by Vital »

We have changed our code only for export to RTF and Word 2007. Other exports already have correct behavior.

Thank you.
Post Reply