Browse Source

添加了是否选择打印机的属性

Kevin 6 năm trước cách đây
mục cha
commit
d9b8fabcab

BIN
dll/GetEasy.Node.Printer.64.dll


BIN
dll/GetEasy.Node.Printer.86.dll


BIN
dll/GetEasy.Node.Printer.dll


+ 1 - 1
index.d.ts

@@ -23,6 +23,6 @@ export default class ReportApi {
      * @param {string} jsonData 数据
      * @memberof ReportApi
      */
-    static reportPrinter(fileName: string, jsonData: string): void;
+    static reportPrinter(fileName: string, jsonData: string, isSelectPrinter: boolean): void;
 }
 export {};

+ 3 - 3
index.js

@@ -22,7 +22,7 @@ var callbackPointer;
 var dll = ffi.Library(dllPath, {
     designerReport: ['void', ['string', 'string']],
     reportShowPreview: ['void', ['string', 'string']],
-    reportPrinter: ['void', ['string', 'string']],
+    reportPrinter: ['void', ['string', 'string', 'bool']],
     waitSaveOrClose: ['void', ['pointer']]
 });
 var ReportApi = /** @class */ (function () {
@@ -77,8 +77,8 @@ var ReportApi = /** @class */ (function () {
      * @param {string} jsonData 数据
      * @memberof ReportApi
      */
-    ReportApi.reportPrinter = function (fileName, jsonData) {
-        dll.reportPrinter(fileName, jsonData);
+    ReportApi.reportPrinter = function (fileName, jsonData, isSelectPrinter) {
+        dll.reportPrinter(fileName, jsonData, isSelectPrinter);
     };
     return ReportApi;
 }());

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "geteasy.node.printer",
-  "version": "1.0.9",
+  "version": "1.1.0",
   "description": "",
   "main": "index.js",
   "scripts": {