[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] BIRT 2.3: Setting the width/height of a master page with the API doesn't work

Hello,

we have a table containing images where we assigned a "master page" with
type "Custom" and initial size values (width: 297 mm, height: 210 mm).
The table also has a "TableEventAdapter" where we set the width and height
of the master page if the table is larger than the initial settings:

public void onPrepare(ITable tableHandle, IReportContext reportContext)
{
   ReportDesignHandle handle = (ReportDesignHandle)
reportContext.getReportRunnable().getDesignHandle();
   MasterPageHandle masterHandle =
handle.findMasterPage(IMAGE_MASTER_PAGE_NAME);
   ...
   masterHandle.setProperty("width", masterPageWidth + "mm");
   masterHandle.setProperty("height", masterPageHeight + "mm");
}

Using BIRT 2.1.x and 2.2.x we get the desired result: The pdf report
contains a separate page for the table and the table size corresponds to the
values set with the method described above.
The page contains all the content of the table (no scaling, no page break,
the images are displayed completely).

But using BIRT 2.3 the settings don't have an effect and the PDF page of the
table has always the width: 297 mm and height: 210 mm. The content is cut at
the right and page breaks are possible.

What can I do to achieve the desired result for BIRT 2.3, too?

Thanks in advance!

Regards,
Gerald.