Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Missing styles after exporting to report library(Missing styles)
Missing styles after exporting to report library [message #671931] Thu, 19 May 2011 11:49 Go to next message
aca Missing name is currently offline aca Missing nameFriend
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 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #672053 is a reply to message #671992] Thu, 19 May 2011 17:57 Go to previous messageGo to next message
aca Missing name is currently offline aca Missing nameFriend
Messages: 35
Registered: March 2011
Member
Version 2.6.2
Re: Missing styles after exporting to report library [message #672322 is a reply to message #671931] Fri, 20 May 2011 17:02 Go to previous messageGo to next message
aca Missing name is currently offline aca Missing nameFriend
Messages: 35
Registered: March 2011
Member
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!

Smile
Re: Missing styles after exporting to report library [message #672372 is a reply to message #672322] Fri, 20 May 2011 20:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #673693 is a reply to message #672372] Tue, 24 May 2011 13:41 Go to previous messageGo to next message
aca Missing name is currently offline aca Missing nameFriend
Messages: 35
Registered: March 2011
Member
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
Re: Missing styles after exporting to report library [message #673725 is a reply to message #673693] Tue, 24 May 2011 14:43 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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
Previous Topic:oracle jdbc driver TIMESTAMP WITH LOCAL TIME ZONE
Next Topic:File Path as a parameter
Goto Forum:
  


Current Time: Fri Sep 20 23:02:05 GMT 2024

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

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

Back to the top