tag:blogger.com,1999:blog-14521551.post8941598528887690745..comments2024-01-01T04:30:26.017-08:00Comments on BIRT World: Styles RevisitedPipebaumhttp://www.blogger.com/profile/03537553362087737960noreply@blogger.comBlogger45125tag:blogger.com,1999:blog-14521551.post-38643137871751043122014-09-02T02:27:17.398-07:002014-09-02T02:27:17.398-07:00Hi i have created a master page for my birt report...Hi i have created a master page for my birt reports in master page i have added a new theme where added a predefined style as table-header-cell where i set a background image for the table header.<br />This style is working fine once i export my report to PDF or HTML fornmat ,but if i export same report in DOCX format the background iamge is not coming up. Please help i laready waisted 3 days in finding the solutionAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-54413242195479760872012-03-12T17:16:09.310-07:002012-03-12T17:16:09.310-07:00As you mentioned Change the page break interval fo...As you mentioned Change the page break interval for the second table from 50 to 0 and then view in html. the report has two tables I changed page break interval from 50 to 0 for second table.ritikahttps://www.blogger.com/profile/03060557961901692203noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-35171859053786259302012-03-12T08:23:35.034-07:002012-03-12T08:23:35.034-07:00That worked for me. What do you mean by the secon...That worked for me. What do you mean by the second page break?Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-31910741095204751162012-03-11T19:16:19.627-07:002012-03-11T19:16:19.627-07:00Yes I tried set the second table page break value ...Yes I tried set the second table page break value to 0, and view the report in HTML from Designer ,only I can see the Header.Please correct me if I am missing something.Thanksritikahttps://www.blogger.com/profile/03060557961901692203noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-83660664557912597392012-03-09T14:14:18.616-08:002012-03-09T14:14:18.616-08:00Are you viewing it just in html? Not in the webvie...Are you viewing it just in html? Not in the webviewer? Change the page break interval for the second table from 50 to 0 and then view in html.<br /><br />JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-46756455096278112712012-03-08T18:49:07.882-08:002012-03-08T18:49:07.882-08:00This sample seems not be working in current versio...This sample seems not be working in current version 11sp3. The table header is not fixed. Please share if you have any latest copy.thanksritikahttps://www.blogger.com/profile/03060557961901692203noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-8852772213461417062012-03-08T09:56:16.343-08:002012-03-08T09:56:16.343-08:00Take a look at:
http://www.birt-exchange.org/org/d...Take a look at:<br />http://www.birt-exchange.org/org/devshare/designing-birt-reports/795-add-a-table-with-a-fixed-header-row/Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-12275050128204217872012-03-07T21:33:12.865-08:002012-03-07T21:33:12.865-08:00Hi is there way we can have fixed report/table hea...Hi is there way we can have fixed report/table header in BIRT like in excelritikahttps://www.blogger.com/profile/03060557961901692203noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-73357421056641098132010-06-17T07:48:56.173-07:002010-06-17T07:48:56.173-07:00If you want to apply a style to only one label, yo...If you want to apply a style to only one label, you want to use a custom style, call it MyLabel. <br /><br />Create the style and then go to the label in the property editor. The property editor will have a drop down called style. You will be able to select MyLabel from the drop down list. <br /><br />NOTE: Pre-Defined styles do not show up in the drop-down. (e.g. label is pre-defined name so it won't show in the drop down).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-343943988280857582010-06-17T07:29:07.359-07:002010-06-17T07:29:07.359-07:00Hi,
How can I apply css style only to one element?...Hi,<br />How can I apply css style only to one element?<br />For example I have element "label" with name="Title" and id="1"<br /><br />I tried:<br />Title{}<br />#1{} <br />but both don't work.<br /><br />Only<br />.label{}<br />works, but this rule is apply to all labels. And, again, I want to apply rule only to one element.<br /><br />Thanks for any tips.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-23653072277313118142010-05-16T15:34:10.668-07:002010-05-16T15:34:10.668-07:00Is there a way, where I can change the default bor...Is there a way, where I can change the default border-collapse:collapse property from collapse to separate. I am unable to get this working.Shishirhttps://www.blogger.com/profile/08766416000663371350noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-18521405276373275402010-05-11T10:02:41.079-07:002010-05-11T10:02:41.079-07:00Diego,
If you send the .CSS file and the .rptdesi...Diego,<br /><br />If you send the .CSS file and the .rptdesign to scottr (at) innoventsolutions (dot) com and I will take a look.<br /><br />Also if you can let me know which table is causing the problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-35962273459990565912010-05-11T09:22:09.101-07:002010-05-11T09:22:09.101-07:00I am using 2.5.1. When i "Use CSS" files...I am using 2.5.1. When i "Use CSS" files, i can see from the generated HTML that the classes in my css file are imported into the html, but i have another problem.<br /><br />I have a table, and applied a style, which i Use from my css file. This table isnt taking theese styles because on the generated html it is:<br /><br /><br />table id="AUTOGENBOOKMARK_2" class="style_2" style="border-collapse: collapse; empty-cells: show; width: 100%; table-layout: fixed; text-align: center;" ...<br /><br />So it will never take the styles defined in .table (because it's class is "style_2"<br /><br />I do not really know how to fix this, it seems to be something related to the generation or table config<br /><br />Thanks in advanceAnonymoushttps://www.blogger.com/profile/12723009934539788047noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-75658884892711438772010-05-10T10:01:58.340-07:002010-05-10T10:01:58.340-07:00Diego,
What version of BIRT are you using?
srDiego, <br /><br />What version of BIRT are you using?<br /><br />srAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-88830829068870690432010-05-10T07:51:13.939-07:002010-05-10T07:51:13.939-07:00hi, i followed the steps and it doesn't work.
...hi, i followed the steps and it doesn't work.<br /><br />I have a report with a table and want to colour it's rows, based on a css file.<br /><br />I clicked on "Use CSS", then selected it, got all classes linked.<br /><br />When i run the report, no visible changes, and styles do not apply to the table, ( i put .table{background-color:gray;}).<br /><br />I checked the html and no css import on the head.<br /><br />Then i go to the design, and on the table properties editor/General/Style, and select table.<br /><br />On the layout, on eclipse, i see the colors, but nothing happens when the report is executed.<br /><br /><br />Hope you can help.<br />Thanks in advance, <br />DiegoAnonymoushttps://www.blogger.com/profile/12723009934539788047noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-62789330955495631072010-04-09T20:44:36.721-07:002010-04-09T20:44:36.721-07:00toc-level-0[-9] does not appear to have any effect...toc-level-0[-9] does not appear to have any effect. There are some TOC items on my report I'd really like to style. can I get to these elements with imported css file?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-100310824404183012009-01-26T13:08:00.000-08:002009-01-26T13:08:00.000-08:00Keith,Any chance you could email me your event han...Keith,<BR/><BR/>Any chance you could email me your event handler (remove client specific logic) let me try on my tomcat instance? If so email it to jasonweathersby at alltel.net.<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-33379728916196191852009-01-26T13:03:00.000-08:002009-01-26T13:03:00.000-08:00Jason,I have tried it with and without that jar in...Jason,<BR/><BR/>I have tried it with and without that jar in the classpath, and it fails both ways.<BR/>Maybe this isn't even a BIRT issue, it may be a tomcat issue. Here's my thinking: the jar would be available if it were called directly through the event in the report, but it is called through my custom Java code, and tomcat does not know where to find this jar when it is called in my java code. I had a similar problem with the mysql driver and had to copy the jar in the the apache/common/libs directory to get my scripted data source working in deployment. I tried doing the same with this jar and tomcat started with errors and would only display an error report in my browser when I tried to go to http://localhost:8080/WebViewerExample.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-10989456968079836542009-01-26T12:25:00.000-08:002009-01-26T12:25:00.000-08:00Keith,You did not put thisorg.eclipse.birt.report....Keith,<BR/><BR/>You did not put this<BR/>org.eclipse.birt.report.engine_2.5.0.v20081113.jar <BR/>in the cp for tomcat did you? This is the plugin jar and I would expect it to be available to the event handler without having to do this.Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-50472780829721557582009-01-26T12:11:00.000-08:002009-01-26T12:11:00.000-08:00I was able to get the above to work in the designe...I was able to get the above to work in the designer, but when I deploy it to a tomcat instance (apache version 5.5.27), I come up with errors. <BR/>In order to pass the <I>StyleInstance</I> object, I have to use an import statement in my java code:<BR/><B><BR/>import org.eclipse.birt.report.engine.script.internal.instance.StyleInstance;<BR/></B><BR/>I've done this, and made sure to add the org.eclipse.birt.report.engine_2.5.0.v20081113.jar file to the build path. This works great in the designer, but I get this error in from the apache server:<BR/>WARNING: There are errors evaluating script "<BR/>printformatter = Packages.com.familyvideo.reportutils.VMCRPrintFormat("report_missing.rptdesign");<BR/>":<BR/>org/eclipse/birt/report/engine/script/internal/instance/StyleInstance.<BR/>org.eclipse.birt.core.exception.CoreException: There are errors evaluating script "<BR/>printformatter = Packages.com.familyvideo.reportutils.VMCRPrintFormat("report_missing.rptdesign");<BR/>":<BR/>org/eclipse/birt/report/engine/script/internal/instance/StyleInstance.<BR/> at org.eclipse.birt.core.script.ScriptContext.eval(ScriptContext.java:303)<BR/> at org.eclipse.birt.core.script.ScriptContext.eval(ScriptContext.java:331)<BR/> at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:653)<BR/> at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.handleJSInternal(ScriptExecutor.java:60)<BR/> at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.handleJS(ScriptExecutor.java:47)<BR/> at org.eclipse.birt.report.engine.script.internal.ReportScriptExecutor.handleBeforeRender(ReportScriptExecutor.java:115)<BR/> at org.eclipse.birt.report.engine.api.impl.EngineTask.startRender(EngineTask.java:1355)<BR/> at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:509)<BR/> at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:208)<BR/> at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1365)<BR/> at org.eclipse.birt.report.service.BirtViewerReportService.getPage(BirtViewerReportService.java:202)<BR/> at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.doExecution(AbstractGetPageActionHandler.java:240)<BR/> at org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:107)<BR/>... cut down for space.<BR/><BR/>The jar that I am attaching in the build path is one of BIRT's major pieces, so does anyone have any ideas as to why I can't get tomcat to let me use it in my java class?<BR/><BR/>Thanks,<BR/><BR/>KeithAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-72912505913065388442009-01-21T09:36:00.000-08:002009-01-21T09:36:00.000-08:00Keith,Glad to hear. I forgot that setPersistentGl...Keith,<BR/><BR/>Glad to hear. I forgot that setPersistentGlobalVariable requires that the object be serializable.<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-11490140520321345462009-01-21T09:16:00.000-08:002009-01-21T09:16:00.000-08:00Jason,I tried moving the initialization of my clas...Jason,<BR/><BR/>I tried moving the initialization of my class as you suggested an started watching the log files for issues and found why it is failing (and found a possible solution).<BR/>Here is the error from the log:<BR/><I>Cannot convert [object Object] to org.eclipse.birt.report.engine.api.script.instance.IReportElementInstance (/report/body/table[@id="31"]/method[@name="onRender"]#3).</I><BR/>As it turns out, the object passed as <I>this</I> from the <I>onRender</I> event is a <I>org.mozilla.javascript.NativeObject</I> . So, I can pass the <I>StyleInstance</I> object instead. That works...<BR/>Also, I've moved the initialization of the class into the <I>beforeRender</I> event for the report (without using the reportContext.setPersistentGlobalVariable method) and it is working like I had hoped.<BR/><BR/>As always, you have been very helpful in figuring out how to solve the problem!<BR/>Thanks,<BR/><BR/>KeithAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-41684837351541999832009-01-20T20:51:00.000-08:002009-01-20T20:51:00.000-08:00If you callprintformatter = Packages.com.familyvid...If you call<BR/>printformatter = Packages.com.familyvideo.reportutils.VMCRPrintFormat("report_missing.rptdesign"); <BR/>only when you need it does it work? I am wondering if it ever finds your class?Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-40570973756746595312009-01-20T14:55:00.000-08:002009-01-20T14:55:00.000-08:00Jason,1 - The error comes from whichever event the...Jason,<BR/><BR/>1 - The error comes from whichever event the <I>printformatter = Packages.com.familyvideo.reportutils.VMCRPrintFormat("report_missing.rptdesign"); reportContext.setPersistentGlobalVariable( "PrintFormatter", printformatter);"</I> lines are in. The error is persistent across all methods of running the report (preview, web viewer from the designer, and deployed web viewer).<BR/><BR/>2 - I was able to get the js file put in the right place to get it to work, but using javascript for this solution makes this less robust and more difficult for the other developers in my group to support in the future.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-17354833667716809902009-01-20T13:26:00.000-08:002009-01-20T13:26:00.000-08:00Keith1 - In the java scenario where are you gettin...Keith<BR/><BR/>1 - In the java scenario where are you getting the error. In what script. BTW move the code to the beforeFactory. It only gets called once. initialize gets called twice with /frameset.<BR/><BR/>2 - In js scenario where did you put the js file?Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.com