|
Re: apply or remove styles dynamically at runtime [message #762268 is a reply to message #762143] |
Wed, 07 December 2011 19:31 |
|
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 #762896 is a reply to message #762430] |
Thu, 08 December 2011 19:29 |
|
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 #762909 is a reply to message #762897] |
Thu, 08 December 2011 19:54 |
|
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 #762922 is a reply to message #762915] |
Thu, 08 December 2011 20:14 |
|
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?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02358 seconds