Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » pdf formatting of an expandable report section?
pdf formatting of an expandable report section? [message #825303] Tue, 20 March 2012 17:51 Go to next message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
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 19:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
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 19:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
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 16:43 Go to previous message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
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: Thu Apr 25 14:03:17 GMT 2024

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

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

Back to the top