Skip to main content



      Home
Home » Archived » 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 03:04:40 EDT 2025

Powered by FUDForum. Page generated in 0.06870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top