Clarity

  • 1.  Report Export Option - Jasper Reporting

    Posted Nov 02, 2018 09:26 AM

    When the user exports the result of the report, we can export it in many ways PDF, Excel, Word and other formats. Is there any way that I can limit only one For Example: system should allow only to export the results in PDF and Word format ?



  • 2.  Re: Report Export Option - Jasper Reporting

    Broadcom Employee
    Posted Nov 04, 2018 08:05 PM

    Hi ArunAngusamy27,

     

    The following configuration may not be supported by PPM officially.
    In case of SaaS customer, it is not allowed to modify xml files.


    For Adhoc view, you may try to edit file WEB-INF\applicationContext-adhoc.xml.
    Look for below line and comment the lines you may not need.

     

    <util:map id="exportFormatLabels">
    <!-- TODO consider using common configuration with viewReportBeans.xml.
    Can't be done immediately because of dependencis to beans from ViewReport flow -->
    <entry key="pdf" value="jasper.report.view.hint.export.pdf"/>
    <entry key="xls" value="jasper.report.view.hint.export.excel"/>
    <entry key="xlsNoPag" value="jasper.report.view.hint.export.excel.nopag"/>
    <entry key="csv" value="jasper.report.view.hint.export.csv"/>
    <entry key="docx" value="jasper.report.view.hint.export.docx"/>
    <entry key="rtf" value="jasper.report.view.hint.export.rtf"/>
    <entry key="odt" value="jasper.report.view.hint.export.odt"/>
    <entry key="ods" value="jasper.report.view.hint.export.ods"/>
    <entry key="xlsx" value="jasper.report.view.hint.export.xlsx"/>
    <entry key="xlsxNoPag" value="jasper.report.view.hint.export.xlsx.nopag"/>
    <entry key="pptx" value="jasper.report.view.hint.export.pptx"/>
    </util:map>

     

    For Report, you may try to edit file WEB-INF\flows\viewReportBeans.xml. 

    Look for below line and comment the lines you may not need.

     

    <util:map id="exporterConfigMap">
    <!-- comment/uncomment any of the lines below if you want related exporters
    to be excluded/included in the viewer's exporters list
    Note: separate configuration for iPad 'exportersSupportedByiPad'
    -->
    <entry key="pdf" value-ref="pdfExporterConfiguration"/>
    <entry key="xls" value-ref="xlsExporterConfiguration"/>
    <entry key="xlsNoPag" value-ref="xlsNoPaginationExporterConfiguration"/>
    <entry key="csv" value-ref="csvExporterConfiguration"/>
    <entry key="docx" value-ref="docxExporterConfiguration"/>
    <!entry key="rtf" value-ref="rtfExporterConfiguration"/>
    <entry key="odt" value-ref="odtExporterConfiguration"/>
    <entry key="ods" value-ref="odsExporterConfiguration"/>
    <entry key="xlsx" value-ref="xlsxExporterConfiguration"/>
    <entry key="xlsxNoPag" value-ref="xlsxNoPaginationExporterConfiguration"/>
    <entry key="pptx" value-ref="pptxExporterConfiguration"/>
    <!--
    <entry key="txt" value-ref="txtExporterConfiguration"/>
    -->
    </util:map>

     

    Restart the application after change in order to reflect the same in UI.

     

    Disable export formats in Adhoc view | Jaspersoft Community 

     

    Regards,

    Shoichi

     



  • 3.  Re: Report Export Option - Jasper Reporting

    Posted Nov 05, 2018 10:18 AM

    Hi Shoichi, Thanks for the workaround. This is SaaS environment. I understood from the above message that I will not be able to change the Adhoc View either in SaaS. Correct me if it is wrong



  • 4.  Re: Report Export Option - Jasper Reporting

    Broadcom Employee
    Posted Nov 05, 2018 10:30 AM

    Thats correct this is not applicable for SAAS as well as on premise also, we haven't tested this as a feature to disable to export to excel feature

     

    Regards
    Suman Pramanik