format excel cell with string content as "text" type (not "general") possible in JExcel but not in Jasper ?

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Hi!

I'm having troubles in Jasper to force the excel cell format to "Text" (instead of "General") when the cell content is a STRING even though it can be easily done in JExcel:
sheet.addCell(new Label(1,1,"test",new WritableCellFormat(NumberFormats.TEXT)))
I believe that the problem is in JExcelApiMetadataExporter, the CellTextValueHandler doesn't try to use the cellComplexFormat if the cell contains a string type.

Is that correct (in which case it would be nice if that problem could be fixed ! :-)), or did I miss anything obvious ?

Regards

kb

 

ntjp's picture
161
Joined: Sep 24 2012 - 6:26pm
Last seen: 1 year 3 months ago

0 Answers:

No answers yet
Feedback
randomness