update 20241217
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -183,10 +183,10 @@ namespace OnDocOffice
|
||||
}
|
||||
}
|
||||
|
||||
public string Generate_Word_in_Office(ref clsDocData docdata, ref clsdok dok, string vorlage, string connectionstring, string tempdir, string dokumentid, string apptype)
|
||||
public string Generate_Word_in_Office(ref clsDocData docdata, ref clsdok dok, string vorlage, string connectionstring, string tempdir, string dokumentid, string apptype, string extension)
|
||||
{
|
||||
this.dokumentid = docdata.Dokumentid;
|
||||
string filename = tempdir + dokumentid + "." + apptype;
|
||||
string filename = tempdir + dokumentid + "." + extension;
|
||||
int pos = 0;
|
||||
int pos2 = 0;
|
||||
|
||||
@@ -313,10 +313,13 @@ namespace OnDocOffice
|
||||
worddoc.Save();
|
||||
|
||||
worddoc.Close();
|
||||
word.Quit(SaveChanges: false);
|
||||
//word.Quit(SaveChanges: false);
|
||||
string b64 = fh.Base64FromFile(filename);
|
||||
word.Documents.Open(filename);
|
||||
worddoc = null;
|
||||
word = null;
|
||||
return fh.Base64FromFile(filename);
|
||||
return b64;
|
||||
//return fh.Base64FromFile(filename);
|
||||
}
|
||||
|
||||
private void Kopfzeile_generieren()
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user