forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
640 B
24 lines
640 B
5 years ago
|
package com.fanruan.api.report;
|
||
|
|
||
|
import com.fr.io.TemplateWorkBookIO;
|
||
|
import com.fr.main.TemplateWorkBook;
|
||
|
/**
|
||
|
* @ClassName TemplateKit
|
||
|
* @Author zack
|
||
|
* @Date 2019/8/23
|
||
|
* @Version 10.0
|
||
|
* 模板操作相关工具类
|
||
|
*/
|
||
|
public class TemplateKit {
|
||
|
/**
|
||
|
* 通过相对路径读取模板
|
||
|
*
|
||
|
* @param relativePath 相对路径(相对reportlets目录)
|
||
|
* @return 模板对象
|
||
|
* @throws Exception 模板读取异常
|
||
|
*/
|
||
|
public static TemplateWorkBook readTemplateByPath(String relativePath) throws Exception {
|
||
|
return TemplateWorkBookIO.readTemplateWorkBook(
|
||
|
relativePath);
|
||
|
}
|
||
|
}
|