update 20241127
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user