update 20240927
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using OnDoc.Helper;
|
||||
using OnDoc.Klassen;
|
||||
|
||||
using Syncfusion.Windows.Forms.Tools;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -61,6 +60,9 @@ namespace OnDoc.UICintrols
|
||||
private bool Separate_Vorschau_offen = false;
|
||||
public string datafilter { get; set; } = "";
|
||||
|
||||
public bool interop { get; set; } = false;
|
||||
public bool runmacros { get; set; } = false;
|
||||
|
||||
public DokList()
|
||||
{
|
||||
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
|
||||
@@ -230,7 +232,7 @@ namespace OnDoc.UICintrols
|
||||
|
||||
clsdok dok = GetDoc(false);
|
||||
if (dok.dokument == "") return;
|
||||
OpenDoc(dok, true);
|
||||
OpenDoc(dok, true,interop, runmacros);
|
||||
}
|
||||
|
||||
private clsdok GetDoc(bool AsPDF)
|
||||
@@ -288,7 +290,7 @@ namespace OnDoc.UICintrols
|
||||
return dok;
|
||||
|
||||
}
|
||||
private void OpenDoc(clsdok dok, bool editdoc, bool interop = false)
|
||||
private void OpenDoc(clsdok dok, bool editdoc, bool interop = false, bool runmacros = false)
|
||||
{
|
||||
|
||||
switch (dok.extension.ToUpper().Substring(0, 1))
|
||||
@@ -301,7 +303,7 @@ namespace OnDoc.UICintrols
|
||||
if (interop == true)
|
||||
{
|
||||
OnDocOffice.clsWordEdit WordInterOP = new OnDocOffice.clsWordEdit(AppParams.connectionstring, tempfilename, selected_dokumentid);
|
||||
WordInterOP.Edit_Document();
|
||||
WordInterOP.Edit_Document(runmacros);
|
||||
WordInterOP = null;
|
||||
}
|
||||
else
|
||||
@@ -489,6 +491,9 @@ namespace OnDoc.UICintrols
|
||||
if (frmnewdok.dokumentid != "")
|
||||
{
|
||||
selected_dokumentid = frmnewdok.dokumentid;
|
||||
interop = frmnewdok.interop;
|
||||
runmacros = frmnewdok.runmacros;
|
||||
|
||||
dokument_bearbeiten();
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user