Kevin 5 年 前
コミット
f9e02320a5

+ 2 - 1
GetEasy.Node.Printer/NodeReportDesigner.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
+using System.Drawing.Imaging;
 using System.Globalization;
 using System.IO;
 using System.Linq;
@@ -241,7 +242,7 @@ namespace GetEasy.Node.Printer
                 dataSource.JsonSource = jsonDataSource;
                 report.DataSource = dataSource;
                 MemoryStream stream = new MemoryStream();
-                report.ExportToImage(stream);
+                report.ExportToImage(stream, ImageFormat.Jpeg);
                 return Convert.ToBase64String(stream.GetBuffer());
             }
             catch (Exception e)

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


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


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


+ 1 - 1
GetEasy.Node.Printer/index.ts

@@ -26,7 +26,7 @@ const dll = ffi.Library(dllPath, {
     designerReport: ['void', ['string', 'string']],
     reportShowPreview: ['void', ['string', 'string']],
     reportPrinter: ['void', ['string', 'string', 'bool']],
-    ReportToImage: ['string', ['string', 'string']],
+    reportToImage: ['string', ['string', 'string']],
     waitSaveOrClose: ['void', ['pointer']]
 });
 type SaveCallback = (saveTemplate: string, callback: (result: boolean) => void) => void;