Thursday, March 29, 2012

Directly generate PDF file

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. MoeskerSure, 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
"A. Moesker" <a.moesker@.home.nl> wrote in message
news:OAk2oUqRFHA.3140@.tk2msftngp13.phx.gbl...
> 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
>|||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
"Bruce L-C [MVP]" wrote:
> 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
> "A. Moesker" <a.moesker@.home.nl> wrote in message
> news:OAk2oUqRFHA.3140@.tk2msftngp13.phx.gbl...
> > 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
> >
> >
>
>

No comments:

Post a Comment