|
|
|
Re: Create reportdesign with the Birt API in java [message #733747 is a reply to message #733669] |
Wed, 05 October 2011 14:50 |
|
You should be able to insert into a position:
designHandle.getBody().add(content, newPos)
where content is the design handle for your headline label or data item.
newPos is just an integer. Try 0.
Jason
On 10/5/2011 7:31 AM, Dude wrote:
> Thanks a lot
>
> I still got one problem. This solution add everything at the bottom of
> the report.
> Do you have any idea how I can add my stuff on a certain point.
> I want to add it at the top of my report as a headline
>
> Thanks
> Dude
|
|
|
|
|
|
Re: Create reportdesign with the Birt API in java [message #750033 is a reply to message #749373] |
Tue, 25 October 2011 15:38 |
|
Yes the same way you edit a report.
Just open a library instead of a report:
LibraryHandle libhan =session.openLibrary("reports/test.rptlibrary");
DesignElementHandle mytable =
libhan.getElementFactory().newTableItem("mytable");
libhan.getComponents().add(mytable);
Jason
On 10/25/2011 3:19 AM, Dude wrote:
> Thanks
>
> One more question ;)
>
> Is it possible to edit the rptlibrary via the API??
>
> Thanks for any answers
>
> Dude
|
|
|
Powered by
FUDForum. Page generated in 0.04104 seconds