Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWrap test for excel
https://www.eclipse.org/forums/index.php/mv/msg/263084/760192/#msg_760192
We are dynamically creating a table and rendering the report,
is there any way we can apply nowrap to the text for the table cells created dynamically.
Thanks,
KKP]]>harip kaligo2011-12-01T15:07:09-00:00Re: Wrap test for excel
https://www.eclipse.org/forums/index.php/mv/msg/263084/760225/#msg_760225
when get the cellhandle just use:
ch.setProperty("style", "younowrapstylename");
Jason
On 12/1/2011 10:07 AM, kkp wrote:
> Hi,
>
> We are dynamically creating a table and rendering the report,
> is there any way we can apply nowrap to the text for the table cells
> created dynamically.
>
> Thanks,
> KKP]]>Jason Weathersby2011-12-01T16:06:21-00:00Re: Wrap test for excel
https://www.eclipse.org/forums/index.php/mv/msg/263084/760236/#msg_760236
Below is the code we have in before factory:
var cs1 = StructureFactory.createComputedColumn();
cs1.setName(rsColumn);
cs1.setExpression( "dataSetRow[\"" + rsColumn + "\"]" );
colbinds.addItem(cs1);
mytable.insertColumn(i+1,-1);
var mydetail = mytable.getDetail().get(0);
var hcell = mydetail.getCells().get(i);
var mydata = elementFactory.newDataItem(null);
mydata.setResultSetColumn(rsColumn);
hcell.getContent().add(mydata);
//get header and add label
var myheader = mytable.getHeader().get(0);
var dcell = myheader.getCells().get(i);
var mylabel = elementFactory.newLabel(null);
mylabel.setText(label);//$NON-NLS-1$
dcell.getContent().add( mylabel );
So can I set nowrap property for the lablel here?]]>harip kaligo2011-12-01T16:45:01-00:00Re: Wrap test for excel
https://www.eclipse.org/forums/index.php/mv/msg/263084/760261/#msg_760261
cellhandle.
Jason
On 12/1/2011 11:45 AM, kkp wrote:
> Jason,
>
> Below is the code we have in before factory:
>
> var cs1 = StructureFactory.createComputedColumn();
> cs1.setName(rsColumn);
> cs1.setExpression( "dataSetRow[\"" + rsColumn + "\"]" );
> colbinds.addItem(cs1);
> mytable.insertColumn(i+1,-1);
> var mydetail = mytable.getDetail().get(0);
> var hcell = mydetail.getCells().get(i);
> var mydata = elementFactory.newDataItem(null);
> mydata.setResultSetColumn(rsColumn);
> hcell.getContent().add(mydata);
> //get header and add label
> var myheader = mytable.getHeader().get(0);
> var dcell = myheader.getCells().get(i);
> var mylabel = elementFactory.newLabel(null);
> mylabel.setText(label);//$NON-NLS-1$
> dcell.getContent().add( mylabel );
>
>
> So can I set nowrap property for the lablel here?]]>Jason Weathersby2011-12-01T17:25:00-00:00