Jump to content

Excel format Difference In OpenOffce and MSExcel


jimjohn

Recommended Posts

Hii

I 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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...