public final class TemplateWorkBookIO
extends java.lang.Object
构造器和说明 |
---|
TemplateWorkBookIO() |
限定符和类型 | 方法和说明 |
---|---|
static long |
getLastModifiedTime(java.lang.String bookPath)
获取指定工作目录下某个模板的最后修改时间
|
static void |
main(java.lang.String[] args) |
static TemplateWorkBook |
readTemplateWorkBook(java.lang.String tplPath)
从tplPath路径读出一个ReportTemplate
从当前目录读取一张cpt模板:
Env env = FRContext.getCommonOperator();
WorkBook = TemplateWorkBookIO.readTemplateWorkBook(env,"\\doc\\Primary\\Parameter\\Parameter.cpt");
|
static TemplateWorkBook |
readTemplateWorkBook(java.lang.String tplPath,
java.lang.String prefix) |
static boolean |
writeTemplateWorkBook(TemplateWorkBook tpl,
java.lang.String tplPath)
保存某个报表到指定的工作目录
|
public static TemplateWorkBook readTemplateWorkBook(java.lang.String tplPath) throws java.lang.Exception
从当前目录读取一张cpt模板:
Env env = FRContext.getCommonOperator(); WorkBook = TemplateWorkBookIO.readTemplateWorkBook(env,"\\doc\\Primary\\Parameter\\Parameter.cpt");
tplPath
- 模板路径java.lang.Exception
public static TemplateWorkBook readTemplateWorkBook(java.lang.String tplPath, java.lang.String prefix) throws java.lang.Exception
java.lang.Exception
public static boolean writeTemplateWorkBook(TemplateWorkBook tpl, java.lang.String tplPath) throws java.lang.Exception
tpl
- 模板tplPath
- 模板路径java.lang.Exception
public static void main(java.lang.String[] args)
public static long getLastModifiedTime(java.lang.String bookPath)
bookPath
- 模板路径