|
@@ -23,6 +23,7 @@ var dll = ffi.Library(dllPath, {
|
|
|
designerReport: ['void', ['string', 'string']],
|
|
|
reportShowPreview: ['void', ['string', 'string']],
|
|
|
reportPrinter: ['void', ['string', 'string', 'bool']],
|
|
|
+ ReportToImage: ['string', ['string', 'string']],
|
|
|
waitSaveOrClose: ['void', ['pointer']]
|
|
|
});
|
|
|
var ReportApi = /** @class */ (function () {
|
|
@@ -80,6 +81,16 @@ var ReportApi = /** @class */ (function () {
|
|
|
ReportApi.reportPrinter = function (fileName, jsonData, isSelectPrinter) {
|
|
|
dll.reportPrinter(fileName, jsonData, isSelectPrinter);
|
|
|
};
|
|
|
+ /**
|
|
|
+ * 打印到图片(返回base64图片)
|
|
|
+ *
|
|
|
+ * @param {string} fileName 模板路径
|
|
|
+ * @param {string} jsonData 数据
|
|
|
+ * @memberof ReportApi
|
|
|
+ */
|
|
|
+ ReportApi.reportToImage = function (fileName, jsonData) {
|
|
|
+ return dll.reportToImage(fileName, jsonData);
|
|
|
+ };
|
|
|
return ReportApi;
|
|
|
}());
|
|
|
exports["default"] = ReportApi;
|