all groups > sql server reporting services > september 2005 >
You're in the

sql server reporting services

group:

PDF Printing example


PDF Printing example RichieRich
9/23/2005 1:30:08 PM
sql server reporting services:
Does anyone have a good example of printing to a PDF file using the web
service?

The one in the documentation does not stream the file back to the browser.

RE: PDF Printing example mike
9/23/2005 1:46:02 PM
this is just a snippet, i'm assuming you already have the basics of using the
web service and getting a report, but just need to know the pdf portion:

report =
rs.Render(reportPath,format,historyID,devInfo,parameters,credentials,showHideToggle,out
encoding, out mimeType, out optionalParams, out optionalWarnings, out
streamIDs);

Response.ClearContent();
Response.AppendHeader("content-length", report.Length.ToString());
Response.ContentType = "application/pdf";
Response.BinaryWrite(report);
Response.Flush();
Response.Close();


[quoted text, click to view]
RE: PDF Printing example RichieRich
9/23/2005 5:11:02 PM
Thanks much. The last time I tried the code from the documentation, I got a
401 error....Authorization required. Do I need to give write rpermissions on
a folder? And which user gets it.

Thanks again.

[quoted text, click to view]
AddThis Social Bookmark Button