Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » apply or remove styles dynamically at runtime(apply or remove styles dynamically at runtime)
apply or remove styles dynamically at runtime [message #762143] Wed, 07 December 2011 15:55 Go to next message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Hi,

We have reports generated in HTML and excel formats, is it possible to remove style for excel version of the reports at runtime.
we are using birt3.7 and native excel emitter to generate excel reports.


Thanks,
KKP
Re: apply or remove styles dynamically at runtime [message #762268 is a reply to message #762143] Wed, 07 December 2011 19:31 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Are you using the /frameset, or the /run, or the /preview mapping to
generate the report?

Jason

On 12/7/2011 10:55 AM, kkp wrote:
> Hi,
>
> We have reports generated in HTML and excel formats, is it possible to
> remove style for excel version of the reports at runtime.
> we are using birt3.7 and native excel emitter to generate excel reports.
>
>
> Thanks,
> KKP
Re: apply or remove styles dynamically at runtime [message #762430 is a reply to message #762268] Thu, 08 December 2011 03:34 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Jason,

We are using birt tld to view the reports in our jsp below is the code snippet used:


<birt:report id="birtViewer"
reportDocument="<%=docName%>"
format="html"
frameborder="no"
isHostPage="false"
pageNum="<%=pageNum%>"
scrolling="no"
width="950"
reportContainer="div">
</birt:report>
Re: apply or remove styles dynamically at runtime [message #762892 is a reply to message #762430] Thu, 08 December 2011 19:26 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Any thoughts on this?
Re: apply or remove styles dynamically at runtime [message #762896 is a reply to message #762430] Thu, 08 December 2011 19:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you try the attached report that changes a style when exporting to
pdf. It does not drop it but should be able to change the style.

Look at the onRender script for the detail row of the table.

Jason

On 12/7/2011 10:34 PM, kkp wrote:
> Jason,
>
> We are using birt tld to view the reports in our jsp below is the code
> snippet used:
>
>
> <birt:report id="birtViewer" reportDocument="<%=docName%>"
> format="html" frameborder="no" isHostPage="false" pageNum="<%=pageNum%>"
> scrolling="no" width="950" reportContainer="div">
> </birt:report>
Re: apply or remove styles dynamically at runtime [message #762897 is a reply to message #762896] Thu, 08 December 2011 19:34 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Jason,

I can try , but is it possible to drop all the styles applied to excel.
Re: apply or remove styles dynamically at runtime [message #762909 is a reply to message #762897] Thu, 08 December 2011 19:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You could try the approach in the previous post or create two tables one
with styling and the other without. You can then set the output format
to hide one or the other with the visibility property.

Jason

On 12/8/2011 2:34 PM, kkp wrote:
> Jason,
>
> I can try , but is it possible to drop all the styles applied to excel.
Re: apply or remove styles dynamically at runtime [message #762915 is a reply to message #762909] Thu, 08 December 2011 20:02 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Jason,

We tied this option, but the size of rptdocument is increasing with two tables wich is causig performance issues.This happens as we are not dropping the table from rptdocumentbut hiding it which will add upto the size of rptdocument.

Is there anyway we can drop the excel table from rptdocument and use only the table with styles for rptdocument.

Is there any wa we can drop the table based on visibility option like, if the table's visibility is set to hide for all but excel then drop the table in rptdocument?
Re: apply or remove styles dynamically at runtime [message #762922 is a reply to message #762915] Thu, 08 December 2011 20:14 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You can only drop tables, styles etc in the beforeFactory or earlier,
which is when the rptdocument is being built. Why will the onRender
script not work for you?

Jason

On 12/8/2011 3:02 PM, kkp wrote:
> Jason,
>
> We tied this option, but the size of rptdocument is increasing with two
> tables wich is causig performance issues.This happens as we are not
> dropping the table from rptdocumentbut hiding it which will add upto the
> size of rptdocument.
>
> Is there anyway we can drop the excel table from rptdocument and use
> only the table with styles for rptdocument.
>
> Is there any wa we can drop the table based on visibility option like,
> if the table's visibility is set to hide for all but excel then drop the
> table in rptdocument?
Re: apply or remove styles dynamically at runtime [message #763211 is a reply to message #762922] Fri, 09 December 2011 11:08 Go to previous messageGo to next message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Jason,

Thanks, we could dynamically remove/add the styles.

-KKP
Re: apply or remove styles dynamically at runtime [message #763318 is a reply to message #763211] Fri, 09 December 2011 14:56 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Which method did you end up going with?

Jason


On 12/9/2011 6:08 AM, kkp wrote:
> Jason,
>
> Thanks, we could dynamically remove/add the styles.
>
> -KKP
Re: apply or remove styles dynamically at runtime [message #763597 is a reply to message #763318] Sat, 10 December 2011 04:01 Go to previous message
harip kaligo is currently offline harip kaligoFriend
Messages: 74
Registered: July 2011
Member
Jason,

We applied different styles like just adding grid lines to excel file using onrender().


Thanks,
KKP
Previous Topic:Null pointer exception while genrating reports
Next Topic:All in one | Eclipse for Birt
Goto Forum:
  


Current Time: Fri Apr 19 02:31:07 GMT 2024

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

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

Back to the top