update 20241127

This commit is contained in:
Stefan Hutter
2024-11-27 15:53:34 +01:00
parent 341ea50f06
commit 2a652c7325
11218 changed files with 1987907 additions and 362275 deletions

View File

@@ -22,6 +22,8 @@ namespace DOCGEN.Generator
public string DokumentID;
public string tempdir;
private static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
public string apikey = "";
public string resturi = "";
public void Lic()
{
@@ -36,11 +38,20 @@ namespace DOCGEN.Generator
this.connectionstring = connectionstring;
Lic();
}
public DocGenerator_from_EDOKA(string connectionstring, string RestUri, string ApiKey)
{
this.connectionstring = connectionstring;
Lic();
this.apikey= ApiKey;
this.resturi= RestUri;
}
public DocGenerator_from_EDOKA(string connectionstring, string tempdir)
public DocGenerator_from_EDOKA(string connectionstring, string tempdir, string RestUri, string ApiKey)
{
this.connectionstring = connectionstring;
this.tempdir = tempdir;
this.resturi = RestUri;
this.apikey = ApiKey;
}
public clsdok Generate_Doc_EDOKA(string dokumentid, ref clsDocData docdata, bool useoffice = false )
@@ -57,7 +68,7 @@ namespace DOCGEN.Generator
{
case "DOCX": case "DOCM": case "DOC": case "DOT":
case "WORD": case "DOTM":
SyncFWord sfword = new SyncFWord();
SyncFWord sfword = new SyncFWord(resturi,apikey);
generate_docdata(dokumentid, ref docdata);
clsdok dok = new clsdok("", "", "");
if (useoffice == false) {