Skip to main content



      Home
Home » Archived » BIRT » Can styles be changed during rendering time based on target?
Can styles be changed during rendering time based on target? [message #73815] Wed, 14 September 2005 10:08 Go to next message
Eclipse UserFriend
The root problem is that i would like to specialize styles for PDF vs HTML
rendering. In particular a font size that is good for HTML, is many times
not good for the PDF rendering.

What i would really like to have is the ability to specialize styles for
different rendering targets. So the default font size for an element may be
specified as "small". Unless specialized, i would like the font to be
"small" for all rendering targets. But if the font turns out to be too
large for PDF, i would like to have the ability to specialize the value of
the font size to "x small" for PDF renderings.

Now i know that is not currently an option, so I'm looking for a workaround.

Is it possible during rendering time onRender() to query the current
rendering target, so i can dynamically modify styles?

Any other ideas would be appreciated.

Thank you.
Re: Can styles be changed during rendering time based on target? [message #73923 is a reply to message #73815] Wed, 14 September 2005 11:46 Go to previous message
Eclipse UserFriend
I just realized that a highlight rule for an element would be a good
workaround. Though i still have the problem of where to query the current
rendering output format?

If there is a standard means of querying this?

Maybe some attribute of the report or config objects? Some other ROM
attribute?

In the worst case i can set a parameter from the environment that specifies
the intended output format, but i would prefer to use some standard BIRT
object property if available.

Thanks.


"Marko" <mmilicevic@pssd.com> wrote in message
news:dg9anu$jb5$1@news.eclipse.org...
> The root problem is that i would like to specialize styles for PDF vs HTML
> rendering. In particular a font size that is good for HTML, is many times
> not good for the PDF rendering.
>
> What i would really like to have is the ability to specialize styles for
> different rendering targets. So the default font size for an element may
be
> specified as "small". Unless specialized, i would like the font to be
> "small" for all rendering targets. But if the font turns out to be too
> large for PDF, i would like to have the ability to specialize the value of
> the font size to "x small" for PDF renderings.
>
> Now i know that is not currently an option, so I'm looking for a
workaround.
>
> Is it possible during rendering time onRender() to query the current
> rendering target, so i can dynamically modify styles?
>
> Any other ideas would be appreciated.
>
> Thank you.
>
>
Previous Topic:discrepancy between preview in eclipse and deployed birt.war
Next Topic:HTML from database?
Goto Forum:
  


Current Time: Tue Jul 22 14:44:55 EDT 2025

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

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

Back to the top