update 20241225
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user