jimjohn Posted March 6, 2009 Share Posted March 6, 2009 HiiI am converting my Jasper to excel using the following code.JExcelApiExporter exporterXLS = new JExcelApiExporter(); exporterXLS.setParameter(JExcelApiExporterParameter.JASPER_PRINT,jsperPrintObject); exporterXLS.setParameter( JExcelApiExporterParameter.IS_DETECT_CELL_TYPE,Boolean.TRUE); exporterXLS.setParameter(JExcelApiExporterParameter.IS_WHITE_PAGE_BACKGROUND,Boolean.TRUE); exporterXLS.setParameter(JExcelApiExporterParameter.IS_FONT_SIZE_FIX_ENABLED,Boolean.TRUE); exporterXLS.setParameter(JExcelApiExporterParameter.IS_AUTO_DETECT_CELL_TYPE,Boolean.TRUE); exporterXLS.setParameter(JExcelApiExporterParameter.IS_ONE_PAGE_PER_SHEET,Boolean.TRUE); exporterXLS.setParameter(JExcelApiExporterParameter.OUTPUT_FILE_NAME,fileName + ".xls"); exporterXLS.setParameter(JExcelApiExporterParameter.OUTPUT_STREAM,output); In Ms excel output format is fine .But in Open office alignment get lost..Is there any other things which i hve to add in Code in Order to get same out put in Open Office.?Thanking You Jim Link to comment Share on other sites More sharing options...
shikhap Posted March 6, 2009 Share Posted March 6, 2009 What jxl version are you using ? Link to comment Share on other sites More sharing options...
Teodor Danciu Posted March 9, 2009 Share Posted March 9, 2009 Hi, What alignment is lost? Cell text alignment?Can you post some sample file here? Thank you,Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now