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

sql server reporting services

group:

Directly generate PDF file


Re: Directly generate PDF file Bruce L-C [MVP]
4/21/2005 2:28:10 PM
sql server reporting services:
Sure, you can do this with either web services or URL integration. You
specify the render method. The default is HTML. If you have a link in your
report use the jump to URL instead of jump to report. Look at books online
and search on URL


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Directly generate PDF file A. Moesker
4/21/2005 9:05:48 PM
Is it possible to generate directly a PDF file with a name, and not first
come in the HTML page and then eport to PDF.

I hope someone knows how.

Kind regards

A. Moesker

Re: Directly generate PDF file Tony Scott
4/22/2005 5:32:13 AM
I use the following JavaScript to determine the output from a standard asp
search results page.

The URL is built up and then calls a window to open up the new URL which
automatically causes the document to either open or be saved (users selection
via dialogue box).

var HLINK="";
HLINK = HLINK + "http://{RS Server Name}/ReportServer"
HLINK = HLINK + "?%2f{Folder Name}%2f"+sReportName
HLINK = HLINK + "&rs%3aClearSession=true"
HLINK = HLINK + "&rs%3aCommand=Render"
HLINK = HLINK + "&rs%3aFormat=" + aFormat //HTML4.0 - PDF - EXCEL
HLINK = HLINK + "&S_Customer="+S_Customer //Params go here
HLINK = HLINK + "&rc%3aToolbar=True"
HLINK = HLINK + "&rc%3aJavaScript=True"
HLINK = HLINK + "&rc%3aLinkTarget=_top"
HLINK = HLINK + "&rc%3aArea=Toolbar"
HLINK = HLINK + ""

You can see how the URL is built up. I use some 12 or so params with this
page and thay can be bolted on where I have indicated.

Best of luck,

Tony

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