update 20241225

This commit is contained in:
Stefan Hutter
2024-12-25 11:42:23 +01:00
parent 4093f8764d
commit 4455cca85a
284 changed files with 100326 additions and 61 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -183,7 +183,7 @@ namespace OnDocOffice
}
}
public string Generate_Word_in_Office(ref clsDocData docdata, ref clsdok dok, string vorlage, string connectionstring, string tempdir, string dokumentid, string apptype, string extension)
public string Generate_Word_in_Office(ref clsDocData docdata, ref clsdok dok, string vorlage, string connectionstring, string tempdir, string dokumentid, string apptype, string extension, int OfficeSleep)
{
this.dokumentid = docdata.Dokumentid;
string filename = tempdir + dokumentid + "." + extension;
@@ -193,10 +193,10 @@ namespace OnDocOffice
Helper.clsFileHelper fh = new Helper.clsFileHelper();
fh.SaveBase64ToFile(vorlage, filename);
Start_Application();
Thread.Sleep(500);
Thread.Sleep(OfficeSleep);
worddoc = word.Documents.Open(filename);
Thread.Sleep(500);
Thread.Sleep(OfficeSleep);
if (worddoc.ProtectionType != Microsoft.Office.Interop.Word.WdProtectionType.wdNoProtection)
@@ -313,7 +313,7 @@ namespace OnDocOffice
worddoc.Save();
worddoc.Close();
//word.Quit(SaveChanges: false);
Thread.Sleep(OfficeSleep);
string b64 = fh.Base64FromFile(filename);
word.Documents.Open(filename);
worddoc = null;