update 20240927

This commit is contained in:
Stefan Hutter
2024-09-27 18:41:27 +02:00
parent 9fcecb2c35
commit bbace0411f
172 changed files with 3073 additions and 1413076 deletions

View File

@@ -108,11 +108,25 @@ namespace OnDocOffice
}
}
public void Edit_Document()
public void Edit_Document(bool runmacros)
{
Start_Application();
doc = word.Documents.Open(filename);
word.Visible = true;
if (runmacros == true)
{
Database.DB db = new Database.DB(connectstring);
db.Get_Tabledata("Select * from ondoc_macros where dokumentid='" + dokumentid + "' order by reihenfolge", false, true);
foreach (DataRow dr in db.dsdaten.Tables[0].Rows)
{
try
{
word.Run(dr[0].ToString());
}
catch { }
}
}
//clsProcessWatch.AddToList(dokumentid, filename, "Word");
bool isClosed = IsDocumentClosed(word, doc);
doc = null;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.