update 20250224
This commit is contained in:
157
ZZ_Signature_C/Form1.Designer.cs
generated
157
ZZ_Signature_C/Form1.Designer.cs
generated
@@ -28,30 +28,40 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings2 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
|
||||
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings2 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
|
||||
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings1 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
|
||||
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings1 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings2 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
|
||||
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.pdfViewerControl1 = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtdoktypnr = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtfilename = new System.Windows.Forms.TextBox();
|
||||
this.txtconnectionstring = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.txtunterschriftlinks = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.txtunterschriftrechts = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(45, 84);
|
||||
this.button1.Location = new System.Drawing.Point(45, 174);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.Size = new System.Drawing.Size(142, 23);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "button1";
|
||||
this.button1.Text = "Unterzeichnen";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(363, 84);
|
||||
this.button2.Location = new System.Drawing.Point(241, 405);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 1;
|
||||
@@ -61,7 +71,7 @@
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(45, 154);
|
||||
this.button3.Location = new System.Drawing.Point(45, 470);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 2;
|
||||
@@ -78,18 +88,18 @@
|
||||
this.pdfViewerControl1.IsBookmarkEnabled = true;
|
||||
this.pdfViewerControl1.IsTextSearchEnabled = true;
|
||||
this.pdfViewerControl1.IsTextSelectionEnabled = true;
|
||||
this.pdfViewerControl1.Location = new System.Drawing.Point(567, 25);
|
||||
messageBoxSettings2.EnableNotification = true;
|
||||
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings2;
|
||||
this.pdfViewerControl1.Location = new System.Drawing.Point(675, 25);
|
||||
messageBoxSettings1.EnableNotification = true;
|
||||
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings1;
|
||||
this.pdfViewerControl1.MinimumZoomPercentage = 50;
|
||||
this.pdfViewerControl1.Name = "pdfViewerControl1";
|
||||
this.pdfViewerControl1.PageBorderThickness = 1;
|
||||
pdfViewerPrinterSettings2.Copies = 1;
|
||||
pdfViewerPrinterSettings2.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
|
||||
pdfViewerPrinterSettings2.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
|
||||
pdfViewerPrinterSettings2.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings2.PrintLocation")));
|
||||
pdfViewerPrinterSettings2.ShowPrintStatusDialog = true;
|
||||
this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings2;
|
||||
pdfViewerPrinterSettings1.Copies = 1;
|
||||
pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
|
||||
pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
|
||||
pdfViewerPrinterSettings1.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings1.PrintLocation")));
|
||||
pdfViewerPrinterSettings1.ShowPrintStatusDialog = true;
|
||||
this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings1;
|
||||
this.pdfViewerControl1.ReferencePath = null;
|
||||
this.pdfViewerControl1.ScrollDisplacementValue = 0;
|
||||
this.pdfViewerControl1.ShowHorizontalScrollBar = true;
|
||||
@@ -99,17 +109,18 @@
|
||||
this.pdfViewerControl1.SpaceBetweenPages = 8;
|
||||
this.pdfViewerControl1.TabIndex = 3;
|
||||
this.pdfViewerControl1.Text = "pdfViewerControl1";
|
||||
textSearchSettings2.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
|
||||
textSearchSettings2.HighlightAllInstance = true;
|
||||
textSearchSettings2.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
|
||||
this.pdfViewerControl1.TextSearchSettings = textSearchSettings2;
|
||||
textSearchSettings1.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
|
||||
textSearchSettings1.HighlightAllInstance = true;
|
||||
textSearchSettings1.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
|
||||
this.pdfViewerControl1.TextSearchSettings = textSearchSettings1;
|
||||
this.pdfViewerControl1.ThemeName = "Default";
|
||||
this.pdfViewerControl1.VerticalScrollOffset = 0;
|
||||
this.pdfViewerControl1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
|
||||
this.pdfViewerControl1.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.Default;
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(148, 84);
|
||||
this.button4.Location = new System.Drawing.Point(26, 405);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(75, 23);
|
||||
this.button4.TabIndex = 4;
|
||||
@@ -117,11 +128,101 @@
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new System.EventHandler(this.button4_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(45, 58);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(79, 13);
|
||||
this.label1.TabIndex = 5;
|
||||
this.label1.Text = "Dokumenttypnr";
|
||||
//
|
||||
// txtdoktypnr
|
||||
//
|
||||
this.txtdoktypnr.Location = new System.Drawing.Point(153, 58);
|
||||
this.txtdoktypnr.Name = "txtdoktypnr";
|
||||
this.txtdoktypnr.Size = new System.Drawing.Size(100, 20);
|
||||
this.txtdoktypnr.TabIndex = 6;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(45, 84);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(61, 13);
|
||||
this.label2.TabIndex = 7;
|
||||
this.label2.Text = "Dateiname:";
|
||||
//
|
||||
// txtfilename
|
||||
//
|
||||
this.txtfilename.Location = new System.Drawing.Point(153, 84);
|
||||
this.txtfilename.Name = "txtfilename";
|
||||
this.txtfilename.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtfilename.TabIndex = 8;
|
||||
//
|
||||
// txtconnectionstring
|
||||
//
|
||||
this.txtconnectionstring.Location = new System.Drawing.Point(153, 25);
|
||||
this.txtconnectionstring.Name = "txtconnectionstring";
|
||||
this.txtconnectionstring.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtconnectionstring.TabIndex = 10;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(45, 28);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(86, 13);
|
||||
this.label3.TabIndex = 9;
|
||||
this.label3.Text = "Connectionstring";
|
||||
//
|
||||
// txtunterschriftlinks
|
||||
//
|
||||
this.txtunterschriftlinks.Location = new System.Drawing.Point(153, 110);
|
||||
this.txtunterschriftlinks.Name = "txtunterschriftlinks";
|
||||
this.txtunterschriftlinks.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtunterschriftlinks.TabIndex = 12;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(45, 110);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(89, 13);
|
||||
this.label4.TabIndex = 11;
|
||||
this.label4.Text = "Unterschrift Links";
|
||||
//
|
||||
// txtunterschriftrechts
|
||||
//
|
||||
this.txtunterschriftrechts.Location = new System.Drawing.Point(153, 136);
|
||||
this.txtunterschriftrechts.Name = "txtunterschriftrechts";
|
||||
this.txtunterschriftrechts.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtunterschriftrechts.TabIndex = 14;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(45, 136);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(98, 13);
|
||||
this.label5.TabIndex = 13;
|
||||
this.label5.Text = "Unterschrift Rechts";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1499, 837);
|
||||
this.Controls.Add(this.txtunterschriftrechts);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.txtunterschriftlinks);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.txtconnectionstring);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.txtfilename);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.txtdoktypnr);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.button4);
|
||||
this.Controls.Add(this.pdfViewerControl1);
|
||||
this.Controls.Add(this.button3);
|
||||
@@ -129,7 +230,9 @@
|
||||
this.Controls.Add(this.button1);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
@@ -140,6 +243,16 @@
|
||||
private System.Windows.Forms.Button button3;
|
||||
private Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl pdfViewerControl1;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox txtdoktypnr;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtfilename;
|
||||
private System.Windows.Forms.TextBox txtconnectionstring;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox txtunterschriftlinks;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox txtunterschriftrechts;
|
||||
private System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ using Syncfusion.OfficeChartToImageConverter;
|
||||
using static System.Net.WebRequestMethods;
|
||||
using System.Net.WebSockets;
|
||||
using Database;
|
||||
using System.Runtime.Hosting;
|
||||
|
||||
|
||||
namespace ZZ_Signature_C
|
||||
@@ -38,24 +39,19 @@ namespace ZZ_Signature_C
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string connectionstring = "data source=shu00;initial catalog=edoka_dms;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29";
|
||||
DB db = new DB(connectionstring);
|
||||
db.Get_Tabledata("Select * from OnDocSignaturePosition where dokumenttypnr=1089");
|
||||
|
||||
string connectionstring = this.txtconnectionstring.Text;
|
||||
OnDocOffice.word_signature ws = new OnDocOffice.word_signature(connectionstring);
|
||||
word = new Microsoft.Office.Interop.Word.Application();
|
||||
word.Visible = true;
|
||||
docWord = word.Documents.Open(@"h:\tssettings\v.dotm");
|
||||
docWord = word.Documents.Open(txtfilename.Text);
|
||||
word.Activate();
|
||||
string ul = @"E:\Software-Projekte\OnDoc\Unterschriften\tg1807.jpg";
|
||||
string ur = @"E:\Software-Projekte\OnDoc\Unterschriften\tg6112.jpg";
|
||||
ws.sign_doc(ref word, ul, ur, "1234", "1089");
|
||||
docWord.Activate();
|
||||
word.Visible = true;
|
||||
|
||||
string ul = txtunterschriftlinks.Text;
|
||||
string ur = txtunterschriftrechts.Text;
|
||||
|
||||
|
||||
|
||||
ws.sign_doc(ref word, ul, ur, "", txtdoktypnr.Text);
|
||||
docWord.Activate();
|
||||
word.Visible = true;
|
||||
|
||||
docWord = null;
|
||||
word = null;
|
||||
|
||||
@@ -326,5 +322,27 @@ namespace ZZ_Signature_C
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
string[] lines = System.IO.File.ReadAllLines(System.Windows.Forms.Application.StartupPath + "\\params.txt");
|
||||
int i = -1;
|
||||
foreach (string line in lines)
|
||||
{
|
||||
i = i + 1;
|
||||
switch (i)
|
||||
{
|
||||
case 0: this.txtconnectionstring.Text = line;break;
|
||||
case 1: this.txtdoktypnr.Text = line;break;
|
||||
case 2: this.txtfilename.Text = line;break;
|
||||
case 3: this.txtunterschriftlinks.Text= line;break;
|
||||
case 4: this.txtunterschriftrechts.Text = line; break;
|
||||
default:break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="pdfViewerPrinterSettings2.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<data name="pdfViewerPrinterSettings1.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
|
||||
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5
ZZ_Signature_C/bin/Debug/_Zipit.bat
Normal file
5
ZZ_Signature_C/bin/Debug/_Zipit.bat
Normal file
@@ -0,0 +1,5 @@
|
||||
delete EDKB02DMS.zip
|
||||
"C:\Program Files\7-Zip\7z.exe" -pshu*tkb98125 a zz_Signature.zip OnDocOffice.dll ZZ_Signature_C.exe
|
||||
|
||||
copy zz_Signature.zip H:\NextCloud\ZZDownload
|
||||
pause
|
||||
5
ZZ_Signature_C/bin/Debug/params.txt
Normal file
5
ZZ_Signature_C/bin/Debug/params.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
data source=shu01\shu00;initial catalog=edoka_dms;workstation id=;packet size=4096;user id=sa;password=*shu29
|
||||
1089
|
||||
h:\tssettings\v.dotm
|
||||
E:\Software-Projekte\OnDoc\Unterschriften\tg1807.jpg
|
||||
E:\Software-Projekte\OnDoc\Unterschriften\tg6112.jpg
|
||||
BIN
ZZ_Signature_C/bin/Debug/zz_Signature.zip
Normal file
BIN
ZZ_Signature_C/bin/Debug/zz_Signature.zip
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user