Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
merging cells using BIRT design engine API
ashish13
Hi,
I am generating rptdesign file on the fly using design engine API. I need to merge some of the cells in header row as per the requirement. Is there any way to do this?
Thanks in advance,
Ashish
Find more posts tagged with
Comments
mwilliams
Try something like this:
importPackage( Packages.org.eclipse.birt.report.model.api );
var mytable = reportContext.getDesignHandle().findElement("mytable");
var myheader = mytable.getHeader( ).get( 0 );
tcell = myheader.getCells( ).get( 1 ).drop();
tcell = myheader.getCells( ).get( 0 );
tcell.setColumnSpan(2);
tcell.setRowSpan(1);