Jump to content

nestoru

Members
  • Posts

    24
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by nestoru

  1. First of all look into http://community.jaspersoft.com/jasperreports-library/issues/2363#comment-710646 as apparently Jasper Reports provided the solution I suggested years ago.


     


    If that does not work then I assume XLS macros do still load correctly (for example following  http://thinkinginsoftware.blogspot.com/2011/11/excel-jasper-reports-with-macros.html). Similar code should be available for XLSX.


     


    I would create a java standalone program (containing main method) that would load the original xlsm, add some text in A1 and then save it with POI could help in understanding if there is an issue with Apache POI. We should manually open the saved file and expect it still opens the message box just like the original xlsm. If it does not then we need to open a bug with Apache POI project. If it does then we add that information here and potentially create a bug ticket for Jasper Reports API.


     


    In addition posting the question to stack overflow just as you did over a year ago (http://stackoverflow.com/questions/28593223/apache-poi-opcpackage-unable-to-save-jasper-report-generated-xlsx) could help as well.


     


    Best regards,


     


    - Nestor


  2. Hello,

    We cannot make custom palette to work. 

    From iReport Designer version 5.6.0 we can set a custom backcolor which will correctly export the excel cell with expected backgroiund color:

    <reportElement mode="Opaque" x="0" y="26" width="250" height="26" forecolor="#FFFFFF" backcolor="#5D87A1" uuid="67e64e41-d7ac-4a1a-aba1-d44eb862c564"/>[/code]

    It is expected that we can set jasperreports.properties:

    net.sf.jasperreports.export.xls.create.custom.palette=true[/code]

    or as a property in JRXML 

    <property name="net.sf.jasperreports.export.xls.create.custom.palette" value="true"/>[/code]
    To get the exact color from a jasperreports exporter however  after using the jrxml from jasperreports 5.6.0 jar it will not respect the custom color and instead break with a NullPointerException:
    Caused by: java.lang.NullPointerExceptionat net.sf.jasperreports.engine.export.JRXlsExporter.getWorkbookColor(JRXlsExporter.java[/code]

    Going back to version 4.7.1 it will not break but it will not change the color either. Moving forward to jasperreports version 6.0.0 will also result in NullPointerException.

    Apparently this works correctly for Jasper Server ( https://community.jaspersoft.com/wiki/discrepancy-report-xls-output-cell-background-color-using-jasperreports-server-web-services ) so the question is if anybody has managed to use custom colors from the jasperreports library and how.

    Thanks in advance,

    - Nestor

     

     

  3. Hello,

    We faced this issue *only* in Windows after an installation + settings import. As I explained in http://thinkinginsoftware.blogspot.com/2012/10/ireport-attribute-uuid-is-not-allowed.html you can go around the issue if you ignore importing settings (or if you work from OSX or Linux you should not see the issue at least in our case going from 4.1.3 to 4.7.1.

    I hope it helps somebody out there.

    Cheers,

    -Nestor

  4. Hi,

    I have created ticket http://jasperforge.org/projects/jasperreports/tracker/view.php?id=5553

    We are lucky enough in our current scenario to have no bidirectional formula references so we are pushing the sheet containing the formula at the end of the workboo and then using a macro that runs automatically once the book is loaded. You can find more information about this trick and a proposal to add macro support in http://jasperforge.org/plugins/mantis/view.php?id=2363

    Best,

    -Nestor

  5. Hi,

     

    Sorry to resucitate an old thread but the suggested link does not work. I am wondering how did you resolve this issue? Excel formatting allows for more options than Jasper as far as I can tell.

    Thanks in advance,

    -Nestor

×
×
  • Create New...