Page 1 of 3
ResponseAsPdf Auto Show
Posted: Fri Sep 21, 2007 8:51 am
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.
ResponseAsPdf Auto Show
Posted: Mon Sep 24, 2007 8:57 am
by Vital
Please try use following code:
Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Me, report, false)
Thank you.
ResponseAsPdf Auto Show
Posted: Mon Sep 24, 2007 9:34 am
by fkmfkm
Vital,
It does open direcly, but my original page is lost !. Can I have it open as a new page ?
ResponseAsPdf Auto Show
Posted: Mon Sep 24, 2007 10:52 am
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.
ResponseAsPdf Auto Show
Posted: Sat Sep 29, 2007 9:20 pm
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 ?
ResponseAsPdf Auto Show
Posted: Thu Oct 04, 2007 2:11 am
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.
ResponseAsPdf Auto Show
Posted: Mon Oct 08, 2007 9:14 am
by fkmfkm
How bout for PDF ?
ResponseAsPdf Auto Show
Posted: Mon Oct 08, 2007 9:21 am
by Edward
Please provide us with more detail about your task.
Thank you.
ResponseAsPdf Auto Show
Posted: Fri Oct 19, 2007 10:54 am
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.
ResponseAsPdf Auto Show
Posted: Sat Oct 20, 2007 2:34 am
by Vital
We have changed our code only for export to RTF and Word 2007. Other exports already have correct behavior.
Thank you.