Go Back   Forum - BIRT Exchange > Spreadsheets in Java Forums > Integrating e.Spreadsheet Engine and Deploying e.Spreadsheet Reports

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2009, 12:44 PM
Junior Member
 
Join Date: Jun 2009
Posts: 4
Default Formatting a data field in a pivot table

We need to format the data fields in a pivot table as we create it.
I've trying:
FieldSettings fieldSettings = dataField.getFieldSettings();
NumberFormat nf = fieldSettings.getNumberFormat();
nf.setCustomFormat("#,###.##;;;");
dataField.setFieldSettings(fieldSettings);

But there resulting pivot table doesn't have any formatting applied.

Any ideas?

Thanks,
Joe
Reply With Quote
  #2 (permalink)  
Old 06-23-2009, 05:00 AM
Junior Member
 
Join Date: Jun 2009
Posts: 4
Default Fixed it

I found an example here:
http://www.birt-exchange.org/documen...10.html#140909
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 12:34 PM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0