Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

Friday, March 30, 2012

Question using Render method

I am using rendermethod to download the report in pdf form.

i use the following:

Dim stream As FileStream = File.OpenWrite(c:\reports\myreport.pdf)

Can you please tell me do i need to save the report on webserver(reportserver hosting server)

or on the client machine who is trying to download or view the report.

what is the method and where shoudl i download. if it is client computer, please help thank you very much for the information.

Displaying the report to the client would be to redirect the response stream to the windows and setting the response header to the right type:

http://support.microsoft.com/default.aspx/kb/875447

Saving would be the same with additional saving the byte[] to a filestream with the method Write() on the the filestream object.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.desql

Wednesday, March 21, 2012

Question on sending report output to PDF

Hi...I'm trying to output an SSRS 2005 report, so that the output goes
immediately to PDF.
I know that I can do the following as the URL:
http://MyServer/ReportServer?/ReportFolder/MyReport&rs:Command=render&rs:Format=PDF&PrimaryKey=1
However, when I do that, I get the 'File Download' dialog, where I can
either save the PDF download as a file, or open it.
What I'd like to do is have the URL "immediately" launch Adobe with the
PDF version of the report (I guess "streaming" it?). So basically, I
don't want the file download dialog. However, I'm not sure of the
syntax. Does anyone have any ideas?
Thanks,
KevinOn Nov 6, 10:54 pm, "Kevin S. Goff" <kg...@.commongroundsolutions.net>
wrote:
> Hi...I'm trying to output an SSRS 2005 report, so that the output goes
> immediately to PDF.
> I know that I can do the following as the URL:
> http://MyServer/ReportServer?/ReportFolder/MyReport&rs:Command=render...
> However, when I do that, I get the 'File Download' dialog, where I can
> either save the PDF download as a file, or open it.
> What I'd like to do is have the URL "immediately" launch Adobe with the
> PDF version of the report (I guess "streaming" it?). So basically, I
> don't want the file download dialog. However, I'm not sure of the
> syntax. Does anyone have any ideas?
> Thanks,
> Kevin
This is the best alternative for what you are looking for. It does
take coding; however, this is the best way to accomplish this.
http://msdn2.microsoft.com/en-us/library/microsoft.wssux.reportingserviceswebservice.rsexecutionservice2005.reportexecutionservice.render.aspx
Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultantsql