public class PrintUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static void |
getPageablePrintBook(java.awt.print.PrinterJob printerJob,
PrintableSet reportPageSet,
javax.print.PrintService printService,
boolean isShowDialog,
int startPageIndex)
打印
|
static void |
print(PrintableSet reportPageSet)
打印
|
static void |
print(PrintableSet reportPageSet,
boolean isShowDialog)
打印
|
static void |
print(PrintableSet reportPageSet,
boolean isShowDialog,
java.lang.String printerName)
打印
|
static void |
print(PrintableSet reportPageSet,
boolean isShowDialog,
java.lang.String printerName,
int startPageIndex)
打印
|
static boolean |
printWorkBook(java.lang.String tplPath)
3769@tracker, 给客户调用的打印报表的接口
调用打印报表的例子:
FRContext.setCurrentEnv(new LocalEnv("c:\\Program Files\\FineReport_7.1\\WebReport\\WEB-INF"));
ModuleContext.startModule(EngineModule.class.getName());
PrintUtils.printWorkBook("WorkBook1.cpt");
|
static boolean |
printWorkBook(java.lang.String tplPath,
boolean isShowDialog)
打印模板
|
static boolean |
printWorkBook(java.lang.String tplPath,
java.util.Map paraMap,
boolean isShowDialog)
打印模板
|
public static boolean printWorkBook(java.lang.String tplPath)
tplPath
- 模板名public static boolean printWorkBook(java.lang.String tplPath, boolean isShowDialog)
tplPath
- 模板名isShowDialog
- 是否显示选项对话框public static boolean printWorkBook(java.lang.String tplPath, java.util.Map paraMap, boolean isShowDialog)
tplPath
- 模板名paraMap
- 模板参数isShowDialog
- 是否显示选项对话框public static void print(PrintableSet reportPageSet, boolean isShowDialog) throws java.awt.print.PrinterException
reportPageSet
- 模板页isShowDialog
- 是否显示选项对话框java.awt.print.PrinterException
public static void print(PrintableSet reportPageSet) throws java.awt.print.PrinterException
reportPageSet
- 报表页java.awt.print.PrinterException
public static void print(PrintableSet reportPageSet, boolean isShowDialog, java.lang.String printerName) throws java.awt.print.PrinterException
reportPageSet
- 报表页isShowDialog
- 是否显示选项框printerName
- 打印机名称java.awt.print.PrinterException
public static void print(PrintableSet reportPageSet, boolean isShowDialog, java.lang.String printerName, int startPageIndex) throws java.awt.print.PrinterException
reportPageSet
- 报表页isShowDialog
- 是否显示选项框printerName
- 打印机名称startPageIndex
- 起始页码java.awt.print.PrinterException
public static void getPageablePrintBook(java.awt.print.PrinterJob printerJob, PrintableSet reportPageSet, javax.print.PrintService printService, boolean isShowDialog, int startPageIndex)
printerJob
- 打印控制器reportPageSet
- 报表页printService
- 打印服务isShowDialog
- 是否弹出打印选项窗口startPageIndex
- 起始页