pedror Posted July 22, 2010 Share Posted July 22, 2010 Hi everybody!I have two problems related with styles1st problem: When I try to export in PPTX format, the borders defined in iReport isn't visible in this kind of files.2nd problem: the labels in the column header has a color (some type of grey) and in the details band I have fields with alternate colors (some kind of light red and white). When the excel file is opened I have no grey labels and the light red becomes light yellow(Edit: I'm using JExcelApiExporter ).All others formats it's great.ANY IDEIAS?Thanks in advance!! Code: Code:JExcelApiExporter exporter = new JExcelApiExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString()); exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE); exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE); exporter.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE); exporter.setParameter(JRXlsExporterParameter.IS_IGNORE_CELL_BACKGROUND, Boolean.FALSE); exporter.exportReport();Post Edited by pedror at 07/22/2010 14:44 Link to comment Share on other sites More sharing options...
lucianc Posted July 29, 2010 Share Posted July 29, 2010 pedrorWrote: 1st problem: When I try to export in PPTX format, the borders defined in iReport isn't visible in this kind of files. Works fine for me. Attach a JRXML and a PPTX file. Which JR version are you using? 2nd problem: the labels in the column header has a color (some type of grey) and in the details band I have fields with alternate colors (some kind of light red and white). When the excel file is opened I have no grey labels and the light red becomes light yellow See JExcelApiExporterParameter.CREATE_CUSTOM_PALETTERegards,Lucian Link to comment Share on other sites More sharing options...
pedror Posted August 2, 2010 Author Share Posted August 2, 2010 Hi Lucian.Thanks for answering and i'm sorry for replying only now, but I have been involved in other projects.I solved my two problems according with your tips. For my second problem in iReport I had to create before a custom palette in the export options > Excel > JExcelApiExporter. ( http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=41846 ). Thanks a lot. 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