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
>

No comments:

Post a Comment