【仅供内部供应商使用,不提供对外解答和培训】

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
themeEclipse
firstline1
titlePDFExporterCreator.java
linenumberstrue
package com.fr.io.exporter;

import com.fr.stable.fun.mark.Immutable;

/**
 * Created by juhaoyu on 2016/12/5.
 */
public interface PDFExporterCreator extends Immutable {

    String MARK_STRING = "PDFExporterCreator";

    int CURRENT_LEVEL = 1;

    @Deprecated
    PDFExporterProcessor createPDFExporter(boolean isPrint);

    /**
     * PDF 导出
     * @param exportType 导出类型:普通导出,打印预览,自动打印
     */
    PDFExporterProcessor createPDFExporter(PDFExportType exportType);
}


四、支持版本

产品线

版本

支持情况

备注

FR8.0支持
FR9.0支持
FR10.0支持
BI3.6支持不支持仪表板
BI4.0支持不支持仪表板
BI5.1支持不支持仪表板
BI5.1.2支持不支持仪表板
BI5.1.3支持不支持仪表板

五、插件注册

Code Block
languagexml
themeEclipse
firstline1
titleplugin.xml
linenumberstrue
<extra-core>
        <PDFExporterCreator class="your class name"/>
</extra-core>

...

PDFExporterProcessor是AppExporter的进一步抽象,没有增加任何操作。开发者在实际开发时,不要直接实现这个接口,应该根据自己要处理的细分类型选择继承PDFExporter、PDFExporterForPrint、PDFEmbExporter三个中的一个。

PDFExportTypeAppExporter生效场景
EXPORTPDFExporter

createPDFExporter( PDFExportType type )

1、点击设计器本身文件的导出pdf

2、定时调度设置pdf附件


createPDFExporter(boolean isPrint )

1、预览模板的导出pdf

2、模板不预览导出pdf

3、预览模板邮件发送pdf附件

PRINTPDFExporterForPrint打印预览时生效。10.0中没有用
EMBED_PRINTPDFEmbExporter

createPDFExporter( PDFExportType type )

10.0的报表打印

八、常用链接

demo地址:demo-excelpdf-exportexporter-cell-valuecreator

ExportOperateProvider

ExportExtensionProcessor

...

com.fr.report.fun.CommentExcelProcessor

com.fr.report.fun.FormatActionProvider

com.fr.stable.fun.ExcelExportCellValueProvider

九、开源案例

免责声明:所有文档中的开源示例,均为开发者自行开发并提供。仅用于参考和学习使用,开发者和官方均无义务对开源案例所涉及的所有成果进行教学和指导。若作为商用一切后果责任由使用者自行承担。