Absolute position in report via API [message #815098] |
Wed, 07 March 2012 03:25  |
Eclipse User |
|
|
|
Hi all!
I unsuccessfully searched the forums in order to make the following concept work:
I must arrange basic elements like labels and images in a report via api in order to be positioned absolutely. I stumbled upon the FreeFormHandle, but it seems like
A. I am using it wrong or
B. Absolute position is not possible at all.
FreeFormHandle free = factory.newFreeForm(null);
free.setWidth(400 + "pt");
free.setHeight(400 + "pt");
free.setX(100 + "pt");
free.setY(150 + "pt");
LabelHandle labeltest = factory.newLabel(null);
labeltest.setText("Hello World");
free.addElement(labeltest, 0);
design.getBody().add(free);
I would appreciate any help!
Thanks
chris
|
|
|
|
Re: Absolute position in report via API [message #815910 is a reply to message #815568] |
Thu, 08 March 2012 02:33  |
Eclipse User |
|
|
|
Jason,
thanks for your quick reply.
Unfortunately, I allow the user in my application to position elements on absolute position (absolute layer with drag & drop mechanism). These positions must somehow be transferred to BIRT via API.
I already tried to implement a mapping-mechanism, which maps absolute position to several grids with custom widths/heights. The result is still disappointing, because tricky positioning of elements will result in improperly generated grids.
I thought there must be an element in BIRT, where I may set x,y coordinates... :/
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.04959 seconds