Update 20250222

This commit is contained in:
Stefan Hutter
2025-02-22 19:17:38 +01:00
parent 986e225bd9
commit 794e577f22
170 changed files with 99313 additions and 87 deletions

View File

@@ -19,6 +19,8 @@ using Syncfusion.OfficeChart;
using Syncfusion.DocToPDFConverter;
using Syncfusion.OfficeChartToImageConverter;
using static System.Net.WebRequestMethods;
using System.Net.WebSockets;
using Database;
namespace ZZ_Signature_C
@@ -36,20 +38,24 @@ namespace ZZ_Signature_C
private void button1_Click(object sender, EventArgs e)
{
string bmname = "Unterschrift2";
//bmname = "TGEDKNameVornameLinksB";
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");
OnDocOffice.word_signature ws = new OnDocOffice.word_signature(connectionstring);
word = new Microsoft.Office.Interop.Word.Application();
docWord = word.Documents.Open(@"E:\Software-Projekte\OnDoc\Excel_Dateien\Signature.docx");
docWord.Activate();
word.Visible = true;
docWord = word.Documents.Open(@"h:\tssettings\v.dotm");
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;
insert_unterschrift("TGEDKVornameNameLinksB99");
insert_unterschrift("TGEDKVornameNameRechtsB99");
word.ActiveDocument.SaveAs2(@"E:\Software-Projekte\OnDoc\Excel_Dateien\SignatureSigned.docx");
docWord = null;
word = null;