Missing styles after exporting to report library [message #671931] |
Thu, 19 May 2011 11:49 |
aca Missing name Messages: 35 Registered: March 2011 |
Member |
|
|
Hi,
I have a report where almost all fields (label, text, data etc) are connected to a style. After exporting (or rather copy/paste) all the styles to a reportlibrary and defaultTheme I have a problem with the printed report.
When I look at the report in eclipse all the styles looks fine and correct, but when I print the report it's like all styles have disappeared.
The report uses the new defaultTheme as I can se it in the Outline view, the General view (Themes: myreportlibrary.defaultTheme) and also in the Style dropdown.
Are there any extra settings I have missed when changing from local styles to a report library?
/Aca
ps. I have changed methods in ReportEngineService from RunAndRenderTask to separate RunTask and RenderTask. I thought I should mention it, even if I don't see the connecion to the use of a reportLibrary.
[Updated on: Thu, 19 May 2011 13:09] Report message to a moderator
|
|
|
Re: Missing styles after exporting to report library [message #671992 is a reply to message #671931] |
Thu, 19 May 2011 14:18 |
|
What version of BIRT are you using?
Jason
On 5/19/2011 7:49 AM, aca wrote:
> Hi, I have a report where almost all fields (label, text, data etc) are
> connected to a style. After exporting (or rather copy/paste) all the
> styles to a reportlibrary and defaultTheme I have a problem with the
> printed report. When I look at the report in eclipse all the styles
> looks fine and correct, but when I print the report it's like all styles
> have disappeared.
> The report uses the new defaultTheme as I can se it in the Outline view,
> the General view (Themes: myreportlibrary.defaultTheme) and also in the
> Style dropdown.
>
> Are there any extra settings I have missed when changing from local
> styles to a report library?
>
> /Aca
|
|
|
|
|
Re: Missing styles after exporting to report library [message #672372 is a reply to message #672322] |
Fri, 20 May 2011 20:30 |
|
Can you post just the snippet of how it created the static path in your
design? If this is a bug I would like it to get fixed.
Jason
On 5/20/2011 1:02 PM, aca wrote:
> I have found the problem!
> When I looked at the xml source after adding the report library I
> noticed that the path was static. When I changed it to relative (as in
> relative to the actual rptdesign) it worked just fine. It's a bit
> surprising though that the path is static when I use the "ordinary" way
> of adding a report library...
>
> Problem solved!
>
> :)
|
|
|
|
Re: Missing styles after exporting to report library [message #673725 is a reply to message #673693] |
Tue, 24 May 2011 14:43 |
|
Thanks for posting.
Jason
On 5/24/2011 9:41 AM, aca wrote:
> My report library is located in another directory than the rptdesign-file.
>
> I followed these steps to use the report library:
> 1. In Outline-view: right-click on the node "Libraries" and select "Use
> Library".
> 2. In the popup-window: find the directory (in the directory tree thas
> is shown) where the report library is located, and select the report
> library.
> 3. Click on the XML Source view and the following is shown:
>
> <list-property name="libraries">
> <structure>
> <property name="fileName"> src/reporting/reportLibrary.rptlibrary
> </property>
> <property name="namespace">reportLibrary</property>
> </structure>
> </list-property>
>
>
>
> As my rptdesign is located in a subdirectory to "reporting" I changed
> the property to:
> <property name="fileName"> ../reportLibrary.rptlibrary
> </property>
>
> BTW - the same problem exist when adding a property file via the
> Resource menu under Poperty Editor - Report view. When I use the button
> "Add file" I get a static path which I then have to change in the xml.
> /Aca
|
|
|
Powered by
FUDForum. Page generated in 0.04075 seconds