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

@@ -13,6 +13,7 @@ using NLog;
using System.Security.Policy;
using OfficePrinter;
using Syncfusion.XlsIO.Implementation.PivotAnalysis;
using OnDocOffice;
namespace DOCGEN.Generator
{
@@ -94,6 +95,17 @@ namespace DOCGEN.Generator
clsdok dok = new clsdok("", "", "");
if (useoffice == false) {
Logging.Logging.Debug("Generate_Word", "Start", dokumentid);
if (docdata.remove_signature)
{
Helper.clsFileHelper fh = new Helper.clsFileHelper();
string filename = tempdir + dokumentid + ".tmp";
fh.SaveBase64ToFile(dt.Rows[0][0].ToString(), filename);
word_signature ws = new word_signature();
ws.remove_unterschriften_synfusion(filename);
dt.Rows[0][0] = fh.Base64FromFile(filename);
ws = null;
}
dok.dokument = sfword.Generate_Word(dt.Rows[0][0].ToString(), docdata);
Logging.Logging.Debug("Generate_Word", "Ende", dokumentid);