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.
The FreeForm report item has not been completed yet. I believe code is
in for writing out to the design, but not generating anything with it yet.
If you are using fixed layout, can you not just use a grid and and set
column and row height and widths?
On 3/7/2012 3:25 AM, Chris K wrote:
> 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);
> I would appreciate any help!
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... :/