Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » pdf formatting of an expandable report section?
pdf formatting of an expandable report section? [message #825303] Tue, 20 March 2012 13:51 Go to next message
Mike Wulkan is currently offline Mike Wulkan
Messages: 141
Registered: July 2009
Senior Member
I have coded some expandable/collapsible sections of my report.
The element that is expanded or collapsed has a custom style associated with it and a script of the form
'<script>document.getElementById("' + blockId + '").style.display = "' + c2 + '"</script>'
is used to toggle the element's visibility.

This works great in html but when I render the document in pdf mode none of the collapsible sections show up even though c2 is set to "block".

What I'd like to do is make sure all sections are expanded when rendering in pdf mode; how can I do that?
Re: pdf formatting of an expandable report section? [message #825359 is a reply to message #825303] Tue, 20 March 2012 15:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Mike

Look at the onRender code for the table rows in the attached example.

Jason

On 3/20/2012 1:51 PM, Mike Wulkan wrote:
> I have coded some expandable/collapsible sections of my report.
> The element that is expanded or collapsed has a custom style associated
> with it and a script of the form '<script>document.getElementById("' +
> blockId + '").style.display = "' + c2 + '"</script>'
> is used to toggle the element's visibility.
>
> This works great in html but when I render the document in pdf mode none
> of the collapsible sections show up even though c2 is set to "block".
>
> What I'd like to do is make sure all sections are expanded when
> rendering in pdf mode; how can I do that?
Re: pdf formatting of an expandable report section? [message #825364 is a reply to message #825303] Tue, 20 March 2012 15:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Mike

Look at the onRender code for the table rows in the attached example.

Jason

On 3/20/2012 1:51 PM, Mike Wulkan wrote:
> I have coded some expandable/collapsible sections of my report.
> The element that is expanded or collapsed has a custom style associated
> with it and a script of the form '<script>document.getElementById("' +
> blockId + '").style.display = "' + c2 + '"</script>'
> is used to toggle the element's visibility.
>
> This works great in html but when I render the document in pdf mode none
> of the collapsible sections show up even though c2 is set to "block".
>
> What I'd like to do is make sure all sections are expanded when
> rendering in pdf mode; how can I do that?
Re: pdf formatting of an expandable report section? [message #826910 is a reply to message #825359] Thu, 22 March 2012 12:43 Go to previous message
Mike Wulkan is currently offline Mike Wulkan
Messages: 141
Registered: July 2009
Senior Member
That is a better way to do it and it let's me get rid of the custom style setting.
Previous Topic:Query will not compile in dataset editor
Next Topic:Simple chart with no aggregation?
Goto Forum:
  


Current Time: Sun Aug 31 06:43:07 EDT 2014

Powered by FUDForum. Page generated in 0.01707 seconds