本帖最后由 Bella.Yuan 于 2023-11-8 11:18 编辑
您好,您的意思是导出html或者pdf吧,可以参考下面的链接:https://demo.grapecity.com.cn/ac ... s/api/export/purejs
//html
function runHtml() {
var ARJS = GC.ActiveReports.Core;
var Html = GC.ActiveReports.HtmlExport;
var settings = {
sheetName: "快递单",
pageSettings: {
size: "A4",
orientation: "portrait",
},
};
var pageReport = new ARJS.PageReport();
pageReport
.load("Quotation.rdlx-json")//报表文件
.then(function () {
return pageReport.run();
})
.then(function (pageDocument) {
return Html.exportDocument(pageDocument, settings);
})
.then(function (result) {
result.download("arjs-html");
});
}
|