update 20250202

This commit is contained in:
Stefan Hutter
2025-02-02 18:07:10 +01:00
parent f1f74f8cc5
commit 293b615547
133 changed files with 333088 additions and 333 deletions

View File

@@ -20,6 +20,7 @@ using System.Configuration;
using Syncfusion.DocIO;
using Syncfusion.Pdf;
using System.IO;
using Syncfusion.Compression.Zip;
namespace DOCGEN
{
@@ -119,6 +120,31 @@ namespace DOCGEN
return dok.dokument;
}
public bool signdoc(string dokumentid, string tempdir)
{
DB db1 = new DB(connectionstring);
try
{
db1.Get_Tabledata("Select * from dokument where dokumentid = '" + dokumentid + "'", false, true);
string unterschriftlinks = db1.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString();
string unterschriftrechts = db1.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString();
OnDocOffice.clsWordEdit we = new OnDocOffice.clsWordEdit(connectionstring, "", "", resturi, apikey);
if (we.insert_signature(dokumentid, unterschriftlinks, unterschriftrechts, tempdir))
{
return true;
}
}
catch {
return false;
}
finally { db1 = null; }
return true;
}
//public void createpdf(string filename)
//{
// WordDocument document = new WordDocument(filename, FormatType.Automatic);
@@ -144,4 +170,6 @@ namespace DOCGEN
// };
//}
}
}