Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » how to get PDF export to use stylesheet?
how to get PDF export to use stylesheet? [message #365412] Wed, 01 October 2008 22:47 Go to next message
Rowan Maclaren is currently offline Rowan MaclarenFriend
Messages: 31
Registered: July 2009
Member
Hi,

I am using BIRT 2.3.1. The PDF emitter is ignoring the external css. How
can I get it to use the css? I have the following in the .rptdesign:

<list-property name="cssStyleSheets">
<structure>
<property name="fileName">web/css/birt.css</property>
</structure>
</list-property>

The uri for the same css file would be: /mvwebreports/css/birt.css

-- Rowan
Re: how to get PDF export to use stylesheet? [message #365433 is a reply to message #365412] Thu, 02 October 2008 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Rowan,

If you are using the "use external style sheets" feature and do not
check the box to specify a url then this filename must be in the
resource folder or the directory of the report design. If you check the
box you can specify a url which should produce xml like:


> <list-property name="cssStyleSheets">
> <structure>
> <property name="fileName">mybirt.css</property>
> <property name="externalCssURI">css/mybirt.css</property>
> </structure>
> </list-property>


Jason

Rowan Maclaren wrote:
> Hi,
>
> I am using BIRT 2.3.1. The PDF emitter is ignoring the external css. How
> can I get it to use the css? I have the following in the .rptdesign:
>
> <list-property name="cssStyleSheets">
> <structure>
> <property name="fileName">web/css/birt.css</property>
> </structure>
> </list-property>
>
> The uri for the same css file would be: /mvwebreports/css/birt.css
>
> -- Rowan
Re: how to get PDF export to use stylesheet? [message #365450 is a reply to message #365433] Thu, 02 October 2008 17:39 Go to previous messageGo to next message
Rowan Maclaren is currently offline Rowan MaclarenFriend
Messages: 31
Registered: July 2009
Member
Hi Jason,

1. The pdf emitter is much fussier about the styles than the html
emitter. There are log entries of css style errors, but no information
about the offending line. e.g.
Oct 2, 2008 1:16:14 PM
org.eclipse.birt.report.model.css.StyleSheetLoader semanticWarning
WARNING: Error.StyleSheetParserException.STYLE_NOT_SUPPORTED
My theory is that the pdf emitter gives up, whereas the html emitter
applies the styles it can.

2. I tried to use the URL checkbox, but the ok button remains grayed
out. Also, the url checkbox states: "Include CSS file at view time(Apply
only to HTML format)." so presumably it does not apply for PDF format.

-- Rowan


Jason Weathersby wrote:
> Rowan,
>
> If you are using the "use external style sheets" feature and do not
> check the box to specify a url then this filename must be in the
> resource folder or the directory of the report design. If you check the
> box you can specify a url which should produce xml like:
>
>
> > <list-property name="cssStyleSheets">
> > <structure>
> > <property name="fileName">mybirt.css</property>
> > <property name="externalCssURI">css/mybirt.css</property>
> > </structure>
> > </list-property>
>
>
> Jason
>
> Rowan Maclaren wrote:
>> Hi,
>>
>> I am using BIRT 2.3.1. The PDF emitter is ignoring the external css.
>> How can I get it to use the css? I have the following in the .rptdesign:
>>
>> <list-property name="cssStyleSheets">
>> <structure>
>> <property name="fileName">web/css/birt.css</property>
>> </structure>
>> </list-property>
>>
>> The uri for the same css file would be: /mvwebreports/css/birt.css
>>
>> -- Rowan
Re: how to get PDF export to use stylesheet? [message #365454 is a reply to message #365450] Thu, 02 October 2008 21:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Rowan,

you are correct, the pdf emitter will only use the style if it finds the
style at the fileName attribute. If you email me the css I will take
a look at what style it is failing on.

Jason

Rowan Maclaren wrote:
> Hi Jason,
>
> 1. The pdf emitter is much fussier about the styles than the html
> emitter. There are log entries of css style errors, but no information
> about the offending line. e.g.
> Oct 2, 2008 1:16:14 PM
> org.eclipse.birt.report.model.css.StyleSheetLoader semanticWarning
> WARNING: Error.StyleSheetParserException.STYLE_NOT_SUPPORTED
> My theory is that the pdf emitter gives up, whereas the html emitter
> applies the styles it can.
>
> 2. I tried to use the URL checkbox, but the ok button remains grayed
> out. Also, the url checkbox states: "Include CSS file at view time(Apply
> only to HTML format)." so presumably it does not apply for PDF format.
>
> -- Rowan
>
>
> Jason Weathersby wrote:
>> Rowan,
>>
>> If you are using the "use external style sheets" feature and do not
>> check the box to specify a url then this filename must be in the
>> resource folder or the directory of the report design. If you check
>> the box you can specify a url which should produce xml like:
>>
>>
>> > <list-property name="cssStyleSheets">
>> > <structure>
>> > <property name="fileName">mybirt.css</property>
>> > <property name="externalCssURI">css/mybirt.css</property>
>> > </structure>
>> > </list-property>
>>
>>
>> Jason
>>
>> Rowan Maclaren wrote:
>>> Hi,
>>>
>>> I am using BIRT 2.3.1. The PDF emitter is ignoring the external css.
>>> How can I get it to use the css? I have the following in the .rptdesign:
>>>
>>> <list-property name="cssStyleSheets">
>>> <structure>
>>> <property name="fileName">web/css/birt.css</property>
>>> </structure>
>>> </list-property>
>>>
>>> The uri for the same css file would be: /mvwebreports/css/birt.css
>>>
>>> -- Rowan
Re: how to get PDF export to use stylesheet? [message #365457 is a reply to message #365454] Thu, 02 October 2008 22:11 Go to previous message
Rowan Maclaren is currently offline Rowan MaclarenFriend
Messages: 31
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------040305040905070008030900
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Thank you Jason. I appreciate it.
The css has a mix of styles for the standard birt classes and for custom
bookmark ids.
-- Rowan

Jason Weathersby wrote:
> Rowan,
>
> you are correct, the pdf emitter will only use the style if it finds the
> style at the fileName attribute. If you email me the css I will take a
> look at what style it is failing on.
>
> Jason
>
> Rowan Maclaren wrote:
>> Hi Jason,
>>
>> 1. The pdf emitter is much fussier about the styles than the html
>> emitter. There are log entries of css style errors, but no information
>> about the offending line. e.g.
>> Oct 2, 2008 1:16:14 PM
>> org.eclipse.birt.report.model.css.StyleSheetLoader semanticWarning
>> WARNING: Error.StyleSheetParserException.STYLE_NOT_SUPPORTED
>> My theory is that the pdf emitter gives up, whereas the html emitter
>> applies the styles it can.
>>
>> 2. I tried to use the URL checkbox, but the ok button remains grayed
>> out. Also, the url checkbox states: "Include CSS file at view
>> time(Apply only to HTML format)." so presumably it does not apply for
>> PDF format.
>>
>> -- Rowan
>>
>>
>> Jason Weathersby wrote:
>>> Rowan,
>>>
>>> If you are using the "use external style sheets" feature and do not
>>> check the box to specify a url then this filename must be in the
>>> resource folder or the directory of the report design. If you check
>>> the box you can specify a url which should produce xml like:
>>>
>>>
>>> > <list-property name="cssStyleSheets">
>>> > <structure>
>>> > <property name="fileName">mybirt.css</property>
>>> > <property name="externalCssURI">css/mybirt.css</property>
>>> > </structure>
>>> > </list-property>
>>>
>>>
>>> Jason
>>>
>>> Rowan Maclaren wrote:
>>>> Hi,
>>>>
>>>> I am using BIRT 2.3.1. The PDF emitter is ignoring the external css.
>>>> How can I get it to use the css? I have the following in the
>>>> .rptdesign:
>>>>
>>>> <list-property name="cssStyleSheets">
>>>> <structure>
>>>> <property name="fileName">web/css/birt.css</property>
>>>> </structure>
>>>> </list-property>
>>>>
>>>> The uri for the same css file would be: /mvwebreports/css/birt.css
>>>>
>>>> -- Rowan

--------------040305040905070008030900
Content-Type: text/css;
name="birt.css"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="birt.css"

#reportTitle {
z-index: 1;
text-align: left !important;
display: block;
padding-right: 365px;
xwidth: 100% !important;
padding-bottom: 5px !important;
padding-top: 20px !important;
font-size: 20px !important;
font-family: Lucida Sans, Jamrul, Verdana, Arial !important;
fontWeight: bold !important;
color: #628095 !important;
border-top: 2px #628095 solid;
line-height: 1.2em;
position: relative;
}


..table-header, .style_1, #headerRow, #headerRowGrid {
color: black;
backgroundColor: #9ABDD0;
font-family: Verdana, Arial !important;
font-size: 0.7em;
font-weight: bold !important;
text-align: left !important;
align: left;
valign: top;
margin-top: 20px;
margin-bottom: 20px;
background-color: rgb(154, 189, 208);
}

#headerRowGrid th {
border-right: 1px ridge #CCCCCC !important;
border-left: 1px ridge #CCCCCC !important;
}


..table-group-header-2, .table-detail, .table-group-header-2, #detailRowGrid, .style_2 {
text-align: left !important;
text-indent: 0.5em;
align: left;
margin-top: 4px;
margin-bottom: 4px;
font-weight: normal;
font-family: Arial, Verdana;
font-size: 0.8em;
overflow: hidden;
}

#detailRowGrid td {
border: 1px ridge #DDF0F8 !important;
}

#numericTH {
text-align: right;
margin-right: 20px;
}

#numericTD {
text-align: right;
margin-right: 30px;
}

#numericTH2column {
text-align: right;
padding-right: 200px;
margin-right: 20px;
}

#numericTD2column {
text-align: right;
padding-right: 200px;
margin-right: 30px;
}

#groupTitle {
font-family: Arial;
font-weight: bolder;
color: #628095;
}

..table-group-header-1, #groupHeader {
color: #555555;
font-weight: bold;
text-align: left;
font-size: 0.8em !important;
text-indent: 0px !important;
font-family: Arial, Verdana;
font-weight: bold;
}

..table-group-footer, .table-group-footer-2, #groupFooter, #groupFooter2 {
border-top: 1px ridge #DDF0F8;
}

..tableFooter, #parameters {
font-family: Arial, Verdana;
font-weight: normal;
color: #555555;
font-size: 0.8em;
}

..noData, .comparisonActivityNoData, #noData {
font-family: Arial;
font-size: larger;
color: #FF8040;
text-align: center;
}

#navigationBar {
color: #555555;
}

tr#legend,#legendHeader th {
color: #555555;
font-family: Arial, Verdana;
font-size: 0.8em !important;
font-weight: bold;
text-align: left;
text-indent: 0px;
align: right;
padding-top: 1em;
}


table#fixedTableHeader {
width: 95%;
}


--------------040305040905070008030900--
Previous Topic:websphere crashed running birt report
Next Topic:BIRT 2.3.1 CSV export data dialog broken?
Goto Forum:
  


Current Time: Mon Dec 22 22:46:55 GMT 2014

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

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