dori.jasper.engine
Class JasperPrintManager

java.lang.Object
  extended bydori.jasper.engine.JasperPrintManager

public class JasperPrintManager
extends java.lang.Object

Façade class for the JasperReports engine.


Constructor Summary
JasperPrintManager()
           
 
Method Summary
static boolean printPage(java.io.InputStream inputStream, int pageIndex, boolean withPrintDialog)
           
static boolean printPage(JasperPrint jasperPrint, int pageIndex, boolean withPrintDialog)
           
static boolean printPage(java.lang.String sourceFileName, int pageIndex, boolean withPrintDialog)
           
static boolean printPages(java.io.InputStream inputStream, int firstPageIndex, int lastPageIndex, boolean withPrintDialog)
           
static boolean printPages(JasperPrint jasperPrint, int firstPageIndex, int lastPageIndex, boolean withPrintDialog)
           
static boolean printPages(java.lang.String sourceFileName, int firstPageIndex, int lastPageIndex, boolean withPrintDialog)
           
static java.awt.Image printPageToImage(java.io.InputStream inputStream, int pageIndex, float zoom)
           
static java.awt.Image printPageToImage(JasperPrint jasperPrint, int pageIndex, float zoom)
           
static java.awt.Image printPageToImage(java.lang.String sourceFileName, int pageIndex, float zoom)
           
static boolean printReport(java.io.InputStream inputStream, boolean withPrintDialog)
           
static boolean printReport(JasperPrint jasperPrint, boolean withPrintDialog)
           
static boolean printReport(java.lang.String sourceFileName, boolean withPrintDialog)
           
static byte[] printReportToPdf(JasperPrint jasperPrint)
           
static void printReportToPdfFile(JasperPrint jasperPrint, java.lang.String destFileName)
           
static java.lang.String printReportToPdfFile(java.lang.String sourceFileName)
           
static void printReportToPdfFile(java.lang.String sourceFileName, java.lang.String destFileName)
           
static void printReportToPdfStream(java.io.InputStream inputStream, java.io.OutputStream outputStream)
           
static void printReportToPdfStream(JasperPrint jasperPrint, java.io.OutputStream outputStream)
           
static java.lang.String printReportToXml(JasperPrint jasperPrint)
           
static void printReportToXmlFile(JasperPrint jasperPrint, java.lang.String destFileName, boolean isEmbeddingImages)
           
static java.lang.String printReportToXmlFile(java.lang.String sourceFileName, boolean isEmbeddingImages)
           
static void printReportToXmlFile(java.lang.String sourceFileName, java.lang.String destFileName, boolean isEmbeddingImages)
           
static void printReportToXmlStream(java.io.InputStream inputStream, java.io.OutputStream outputStream)
           
static void printReportToXmlStream(JasperPrint jasperPrint, java.io.OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasperPrintManager

public JasperPrintManager()
Method Detail

printReportToPdfFile

public static java.lang.String printReportToPdfFile(java.lang.String sourceFileName)
                                             throws JRException
Throws:
JRException

printReportToPdfFile

public static void printReportToPdfFile(java.lang.String sourceFileName,
                                        java.lang.String destFileName)
                                 throws JRException
Throws:
JRException

printReportToPdfFile

public static void printReportToPdfFile(JasperPrint jasperPrint,
                                        java.lang.String destFileName)
                                 throws JRException
Throws:
JRException

printReportToPdfStream

public static void printReportToPdfStream(java.io.InputStream inputStream,
                                          java.io.OutputStream outputStream)
                                   throws JRException
Throws:
JRException

printReportToPdfStream

public static void printReportToPdfStream(JasperPrint jasperPrint,
                                          java.io.OutputStream outputStream)
                                   throws JRException
Throws:
JRException

printReportToPdf

public static byte[] printReportToPdf(JasperPrint jasperPrint)
                               throws JRException
Throws:
JRException

printReportToXmlFile

public static java.lang.String printReportToXmlFile(java.lang.String sourceFileName,
                                                    boolean isEmbeddingImages)
                                             throws JRException
Throws:
JRException

printReportToXmlFile

public static void printReportToXmlFile(java.lang.String sourceFileName,
                                        java.lang.String destFileName,
                                        boolean isEmbeddingImages)
                                 throws JRException
Throws:
JRException

printReportToXmlFile

public static void printReportToXmlFile(JasperPrint jasperPrint,
                                        java.lang.String destFileName,
                                        boolean isEmbeddingImages)
                                 throws JRException
Throws:
JRException

printReportToXmlStream

public static void printReportToXmlStream(java.io.InputStream inputStream,
                                          java.io.OutputStream outputStream)
                                   throws JRException
Throws:
JRException

printReportToXmlStream

public static void printReportToXmlStream(JasperPrint jasperPrint,
                                          java.io.OutputStream outputStream)
                                   throws JRException
Throws:
JRException

printReportToXml

public static java.lang.String printReportToXml(JasperPrint jasperPrint)
                                         throws JRException
Throws:
JRException

printReport

public static boolean printReport(java.lang.String sourceFileName,
                                  boolean withPrintDialog)
                           throws JRException
Throws:
JRException

printReport

public static boolean printReport(java.io.InputStream inputStream,
                                  boolean withPrintDialog)
                           throws JRException
Throws:
JRException

printReport

public static boolean printReport(JasperPrint jasperPrint,
                                  boolean withPrintDialog)
                           throws JRException
Throws:
JRException

printPage

public static boolean printPage(java.lang.String sourceFileName,
                                int pageIndex,
                                boolean withPrintDialog)
                         throws JRException
Throws:
JRException

printPage

public static boolean printPage(java.io.InputStream inputStream,
                                int pageIndex,
                                boolean withPrintDialog)
                         throws JRException
Throws:
JRException

printPage

public static boolean printPage(JasperPrint jasperPrint,
                                int pageIndex,
                                boolean withPrintDialog)
                         throws JRException
Throws:
JRException

printPages

public static boolean printPages(java.lang.String sourceFileName,
                                 int firstPageIndex,
                                 int lastPageIndex,
                                 boolean withPrintDialog)
                          throws JRException
Throws:
JRException

printPages

public static boolean printPages(java.io.InputStream inputStream,
                                 int firstPageIndex,
                                 int lastPageIndex,
                                 boolean withPrintDialog)
                          throws JRException
Throws:
JRException

printPages

public static boolean printPages(JasperPrint jasperPrint,
                                 int firstPageIndex,
                                 int lastPageIndex,
                                 boolean withPrintDialog)
                          throws JRException
Throws:
JRException

printPageToImage

public static java.awt.Image printPageToImage(java.lang.String sourceFileName,
                                              int pageIndex,
                                              float zoom)
                                       throws JRException
Throws:
JRException

printPageToImage

public static java.awt.Image printPageToImage(java.io.InputStream inputStream,
                                              int pageIndex,
                                              float zoom)
                                       throws JRException
Throws:
JRException

printPageToImage

public static java.awt.Image printPageToImage(JasperPrint jasperPrint,
                                              int pageIndex,
                                              float zoom)
                                       throws JRException
Throws:
JRException


Copyright © 2001-2004 Teodor Danciu. All Rights Reserved.