diff --git a/ToolProject/TestForm/TestForm/App.config b/ToolProject/TestForm/TestForm/App.config
index 1c883a5f..382091ad 100644
--- a/ToolProject/TestForm/TestForm/App.config
+++ b/ToolProject/TestForm/TestForm/App.config
@@ -28,6 +28,10 @@
+
+
+
+
\ No newline at end of file
diff --git a/ToolProject/TestForm/TestForm/CheckOutBase.pdf b/ToolProject/TestForm/TestForm/CheckOutBase.pdf
new file mode 100644
index 00000000..86b69498
--- /dev/null
+++ b/ToolProject/TestForm/TestForm/CheckOutBase.pdf
@@ -0,0 +1,4 @@
+DEMO VERSION
+
+ 签单条样例
+
\ No newline at end of file
diff --git a/ToolProject/TestForm/TestForm/Form1.Designer.cs b/ToolProject/TestForm/TestForm/Form1.Designer.cs
index 02db917e..a1e849a3 100644
--- a/ToolProject/TestForm/TestForm/Form1.Designer.cs
+++ b/ToolProject/TestForm/TestForm/Form1.Designer.cs
@@ -33,6 +33,7 @@
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button3 = new System.Windows.Forms.Button();
+ this.button4 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
@@ -81,11 +82,22 @@
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
+ // button4
+ //
+ this.button4.Location = new System.Drawing.Point(114, 111);
+ this.button4.Name = "button4";
+ this.button4.Size = new System.Drawing.Size(75, 23);
+ this.button4.TabIndex = 5;
+ this.button4.Text = "button4";
+ this.button4.UseVisualStyleBackColor = true;
+ this.button4.Click += new System.EventHandler(this.button4_Click);
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(294, 181);
+ this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
@@ -105,6 +117,7 @@
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button3;
+ private System.Windows.Forms.Button button4;
}
}
diff --git a/ToolProject/TestForm/TestForm/Form1.cs b/ToolProject/TestForm/TestForm/Form1.cs
index 5379c101..d31c4b2c 100644
--- a/ToolProject/TestForm/TestForm/Form1.cs
+++ b/ToolProject/TestForm/TestForm/Form1.cs
@@ -1,14 +1,21 @@
using DSWeb.Service.Output;
+
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
+using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using QuestPDF;
+
+using QuestPDF.Fluent;
+using QuestPDF.Helpers;
+using QuestPDF.Infrastructure;
//using D7MqClient;
@@ -47,5 +54,48 @@ namespace TestForm
JobFanWeiToDS7 jd = new JobFanWeiToDS7();
jd.DoWork();
}
+
+ private void button4_Click(object sender, EventArgs e)
+ {
+ Document.Create(container =>
+ {
+ container.Page(page =>
+ {
+ page.Size(842,595);
+ page.Margin(2, Unit.Centimetre);
+ page.Background(Colors.White);
+ page.DefaultTextStyle(x => x.FontSize(20));
+
+ page.Header()
+ .Text("提单可签发通知")
+ .Medium()
+ .SemiBold().FontFamily("宋体").FontSize(36).FontColor(Colors.Blue.Medium);
+
+
+ page.Content()
+ .PaddingVertical(1, Unit.Centimetre)
+ .Column(x =>
+ {
+ x.Spacing(20);
+
+ x.Item().Text("第一行第一列").FontFamily("宋体");
+ x.Item().Text("第一行第一列").FontFamily("宋体");
+ x.Item().Text("第一行第一列").FontFamily("宋体");
+ x.Item().Text("第一行第一列").FontFamily("宋体");
+ //x.Item().Image(Placeholders.Image(200, 100));
+ });
+
+ page.Footer()
+ .AlignCenter()
+ .Text(x =>
+ {
+ x.Span("page").FontSize(8);
+ x.CurrentPageNumber().FontSize(8);
+ });
+ });
+ })
+ .GeneratePdf("bb.pdf");
+
+ }
}
}
diff --git a/ToolProject/TestForm/TestForm/TestForm.csproj b/ToolProject/TestForm/TestForm/TestForm.csproj
index e0be6c6a..3661772f 100644
--- a/ToolProject/TestForm/TestForm/TestForm.csproj
+++ b/ToolProject/TestForm/TestForm/TestForm.csproj
@@ -48,12 +48,37 @@
..\..\..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.SqlServer.dll
+
+ ..\..\..\packages\HarfBuzzSharp.2.8.2.3\lib\net462\HarfBuzzSharp.dll
+
..\..\..\packages\Quartz.2.6.2\lib\net40\Quartz.dll
+
+ ..\..\..\packages\QuestPDF.2022.12.2\lib\net462\QuestPDF.dll
+
+
+ ..\..\..\packages\SkiaSharp.2.88.3\lib\net462\SkiaSharp.dll
+
+
+ ..\..\..\packages\SkiaSharp.HarfBuzz.2.88.3\lib\net462\SkiaSharp.HarfBuzz.dll
+
+
+ ..\..\..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll
+
+
+ ..\..\..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll
+
+
+
+ ..\..\..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll
+
+
+ ..\..\..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll
+
@@ -115,6 +140,14 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ToolProject/TestForm/TestForm/packages.config b/ToolProject/TestForm/TestForm/packages.config
index ae18e20a..cd6420f7 100644
--- a/ToolProject/TestForm/TestForm/packages.config
+++ b/ToolProject/TestForm/TestForm/packages.config
@@ -3,5 +3,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ToolProject/TestForm/TestForm/未命名.frx b/ToolProject/TestForm/TestForm/未命名.frx
new file mode 100644
index 00000000..9d6a3018
--- /dev/null
+++ b/ToolProject/TestForm/TestForm/未命名.frx
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ToolProject/TestForm/TestForm/未命名.pdf b/ToolProject/TestForm/TestForm/未命名.pdf
new file mode 100644
index 00000000..86b69498