Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

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
> >
> >
>
>

Friday, February 24, 2012

Different header in HTML vs. PDF?

I have a report that is being displayed as a web page, and I've also
got a "Printer-friendly" button to call the same report generates as a
PDF. However, due to the business needs of the application, we need to
add an additional footer with copyright information to the bottom of
each page in the PDF version, but not display it when it's being viewed
as a web page (since it will be viewed in an IFRAME).
I've seen that the Visibility property of a section can be an
expression, so what I'm thinking is that I could use something along
the lines of =Iif(format="PDF", true, false) for the Visibility of the
footer, so it will show up when the passed-in "Format" parameter is
"PDF", but not when it's "HTML4.0". However, I'm not sure how to
access this parameter, or even whether or not I am able to.
Is there a way to access this value? Or will I have to make two
different reports, one with a footer and one without?
Thanks,
David HendersonThe second option is the best one.
Amarnath
"David Henderson" wrote:
> I have a report that is being displayed as a web page, and I've also
> got a "Printer-friendly" button to call the same report generates as a
> PDF. However, due to the business needs of the application, we need to
> add an additional footer with copyright information to the bottom of
> each page in the PDF version, but not display it when it's being viewed
> as a web page (since it will be viewed in an IFRAME).
> I've seen that the Visibility property of a section can be an
> expression, so what I'm thinking is that I could use something along
> the lines of =Iif(format="PDF", true, false) for the Visibility of the
> footer, so it will show up when the passed-in "Format" parameter is
> "PDF", but not when it's "HTML4.0". However, I'm not sure how to
> access this parameter, or even whether or not I am able to.
> Is there a way to access this value? Or will I have to make two
> different reports, one with a footer and one without?
> Thanks,
> David Henderson
>