Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Help with external css(external css)
Help with external css [message #559501] Thu, 16 September 2010 16:55 Go to next message
Marty Jones is currently offline Marty Jones
Messages: 54
Registered: July 2009
Member
I have a report that has a text field in it that contains html markup. I am trying to find a way so that the report will include some styles needed for unordered lists (<ul>). The only way I have found to make it work is to create a custom style that is basically empty and check the checkbox stating that I want to include the css file at view time and then I specify a external uri to my webserver. The problem is that I don't want to specify a absolute uri to the style sheet.

Is there a way that I can define a inline css style for <ul> within the report so that I don't have to specify a external uri?

I am using release 2.3.2 .

Thanks,

Marty

[Updated on: Thu, 16 September 2010 17:02]

Report message to a moderator

Re: external css [message #559694 is a reply to message #559501] Fri, 17 September 2010 11:25 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Marty,

What style properties do you want to set?
Try adding a text element with a inline like:

<ul style="margin-left: 0em; padding-left: 1em;
"><li style="margin-left:
-1px">TEXT1</li><li>TEXT2</li><li>TEXT3</li></ul >

Note that not all inline style properties will be supported in pdf output.

Jason



On 9/16/2010 4:55 PM, Marty Jones wrote:
> I have a report that has a text field in it that contains html markup.
> I am trying to find a way so that the report will include some styles
> needed for unordered lists (<ul>). The only way I have found to make it
> work is to create a custom style that is basically empty and check the
> checkbox stating that I want to include the css file at view time and
> then I specify a external uri to my webserver. The problem is that I
> don't want to specify a absolute uri to the style sheet.
>
> Is there a way that I can define a inline css style for <ul> within the
> report so that I don't have to specify a external uri?
>
> Thanks,
>
> Marty


Jason Weathersby

BIRT Exchange
Re: external css [message #559721 is a reply to message #559694] Fri, 17 September 2010 12:54 Go to previous messageGo to next message
Marty Jones is currently offline Marty Jones
Messages: 54
Registered: July 2009
Member
Jason,

The problem is that I am pulling text from a db that has html markup within it so there will be <p> and <ul> elements inside of it. What I want to do is have the html version of the report use a style sheet for the <ul> elements within the text field that I have marked as having html content inside of it.

I can get it to work by passing a absolute url to the external uri on a custom style element that I added to the report. I would rather that the style be somehow associated inside the report itself and not have to do a external call to a static uri.

Can this be done?

[Updated on: Mon, 20 September 2010 07:53]

Report message to a moderator

Re: external css [message #560162 is a reply to message #559721] Tue, 21 September 2010 07:56 Go to previous messageGo to next message
Marty Jones is currently offline Marty Jones
Messages: 54
Registered: July 2009
Member
Jason,

I ended up just using a stored function (oracle db) to add a inline style to any <ul> elements it found in the string. This fixed my problem for now.
Re: Help with external css [message #560212 is a reply to message #559501] Tue, 21 September 2010 11:06 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Glad its working. Sorry I was unable to help you.

Jason


Jason Weathersby

BIRT Exchange
Previous Topic:more customize report viewer
Next Topic:Design ideas, using BIRT only as viewer ?
Goto Forum:
  


Current Time: Sat Apr 19 23:17:11 EDT 2014

Powered by FUDForum. Page generated in 0.01734 seconds