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

No comments:

Post a Comment