Class Java14PrintUtil


  • public class Java14PrintUtil
    extends Object
    Creation-Date: 05.09.2005, 19:11:47
    Author:
    Thomas Morgner
    • Method Detail

      • isValidConfiguration

        public static int isValidConfiguration​(PrintRequestAttributeSet attributes,
                                               org.pentaho.reporting.engine.classic.core.MasterReport report)
        This tests, whether the given attribute set defines the same page properties as the given JFreeReport object.

        While showing the print dialog, the user has the chance to alter the page format of the print job. When that happens, we have to repaginate the whole report, which may render the users page range input invalid. In that case, we will have to redisplay the dialog.

        Parameters:
        attributes -
        report -
        Returns:
      • copyConfiguration

        public static PrintRequestAttributeSet copyConfiguration​(PrintRequestAttributeSet attributes,
                                                                 org.pentaho.reporting.engine.classic.core.MasterReport report)
        This method replaces the media definition from the given attribute set with the one found in the report itself.

        If no JobName is set, a default jobname will be assigned.

        Parameters:
        attributes -
        report -
        Returns:
      • printDirectly

        public static void printDirectly​(org.pentaho.reporting.engine.classic.core.MasterReport report,
                                         PrintService printService)
                                  throws PrintException,
                                         org.pentaho.reporting.engine.classic.core.ReportProcessingException
        Throws:
        PrintException
        org.pentaho.reporting.engine.classic.core.ReportProcessingException
      • print

        public static boolean print​(org.pentaho.reporting.engine.classic.core.MasterReport report)
                             throws PrintException,
                                    org.pentaho.reporting.engine.classic.core.ReportProcessingException
        Throws:
        PrintException
        org.pentaho.reporting.engine.classic.core.ReportProcessingException
      • print

        public static boolean print​(org.pentaho.reporting.engine.classic.core.MasterReport report,
                                    org.pentaho.reporting.engine.classic.core.event.ReportProgressListener progressListener)
                             throws PrintException,
                                    org.pentaho.reporting.engine.classic.core.ReportProcessingException
        Throws:
        PrintException
        org.pentaho.reporting.engine.classic.core.ReportProcessingException