Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Replacing export plugins in preview windows

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default Replacing export plugins in preview windows

    Hi,

    is there a nice way to replace dynamically the export plugins shown in the preview windows? I would like to show a simple export properties dialog, possibly only with file name, not the complicated one, currently shown by the export plugins (especially the PDF export plugin). The dialogs, as I saw, are not replaceable, but also I can't unregister the already registered plugins, to replace them with custom ones showing simple properties dialogs.

    Thanks

  2. #2

    Default

    Hi,

    I guess you can change the export plugins at run time. I am not sure about the run time because I didn't look at the code but I am pretty sure you can change the implementation.

    Write a new module, just look at the PDF export module (org/jfree/report/modules/gui/pdf) and mimic it.
    After that, just change the global config key org.jfree.report.modules.gui.pdf.Module=org.jfree.report.modules.gui.pdf.PDFExportGUIModule.
    This key is in jfreereport.properties and there a several ways to change this key. (Look in the forum about how configure it ... or ask for help if needed)
    May the Moo force be with you,
    Said Mimil

    A student of JFree & Pentaho Academies,
    Cedric Pronzato

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.