Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Newbie: web viewer report - html set left margin(How to set left margin of a report shown via webviewer)
Newbie: web viewer report - html set left margin [message #684285] Wed, 15 June 2011 11:03 Go to next message
endiBirt  is currently offline endiBirt
Messages: 13
Registered: June 2011
Junior Member
Hi all,

does anybody know what is the easiest way to set the left margin of a report when viewed via webviewer.
Is it the Masterpage - Margin - Setting? Seems not, perhabs only for pdf or doc...
Or is it possible to adjust it via script?
Or should it be done via css?

Thanks for any hint in advance.


Regards

Andreas
Re: Newbie: web viewer report - html set left margin [message #684396 is a reply to message #684285] Wed, 15 June 2011 14:26 Go to previous messageGo to next message
endiBirt  is currently offline endiBirt
Messages: 13
Registered: June 2011
Junior Member
Ha ok, found it. Sorry, realy stupid. Styles is the magic word.

The only problem I now cannot solve is how to set a style via script. For instance if you have a lableHandle there isnt a setStyle method.

How can I set a style to an element via script?

Thanks for any hint in advance.


Regards

Andreas
Re: Newbie: web viewer report - html set left margin [message #684438 is a reply to message #684396] Wed, 15 June 2011 14:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

The easiest way is to name the label in the general properties and in
the beforeFactory script do something like:

reportContext.getDesignHandle().findElement("mylabel").setStyleName("highlight-orange");

Jason

On 6/15/2011 10:26 AM, endiBirt wrote:
> Ha ok, found it. Sorry, realy stupid. Styles is the magic word.
> The only problem I now cannot solve is how to set a style via script.
> For instance if you have a lableHandle there isnt a setStyle method.
> How can I set a style to an element via script?
>
> Thanks for any hint in advance.
>
>
> Regards
>
> Andreas
Re: Newbie: web viewer report - html set left margin [message #684767 is a reply to message #684438] Thu, 16 June 2011 08:01 Go to previous messageGo to next message
endiBirt  is currently offline endiBirt
Messages: 13
Registered: June 2011
Junior Member
Hi Jason,

thank you very much for the hint. It worked like a charm.

Please let me ask one last question. I made a new style, set Box - Margin left 20 points. The style works for labels but fails when set to a grid. The grid ignores the style. I don't see a reason, why.

Thanks for any hint in advance.


Reagards

Andreas

PS: Yes, I should have opened a new Thread. Please sorry...
Re: Newbie: web viewer report - html set left margin [message #684769 is a reply to message #684767] Thu, 16 June 2011 08:04 Go to previous message
endiBirt  is currently offline endiBirt
Messages: 13
Registered: June 2011
Junior Member
Ah found it. The grid has a separate Margin Set Possibility.

Thanks again.


Andreas
Previous Topic:Using Array data in graphs
Next Topic:SLF4J Support
Goto Forum:
  


Current Time: Sat Oct 25 09:45:39 GMT 2014

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

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