update 20251228

This commit is contained in:
Stefan Hutter
2025-12-28 09:56:40 +01:00
parent 4239fba5aa
commit e377f08ccd
46 changed files with 933 additions and 141 deletions

View File

@@ -402,6 +402,39 @@ namespace OnDocOffice
}
}
//public void Show_Document(bool runmacros)
//{
// bool readOnly = true;
// Object oMissing = System.Reflection.Missing.Value;
// Start_Application();
// doc = word.Documents.Open(filename,false,true);
// word.Visible = true;
// if (runmacros == true)
// {
// Logging.Logging.Debug("Makros auslesen", "Edit_Document", dokumentid);
// 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
// {
// Logging.Logging.Debug("Makro ", "Edit_Document", dr[0].ToString());
// word.Run(dr[0].ToString());
// }
// catch (Exception e)
// {
// Logging.Logging.Debug("MakroError ", "Edit_Document", e.Message);
// string a = e.Message;
// }
// }
// }
// //clsProcessWatch.AddToList(dokumentid, filename, "Word");
// bool isClosed = IsDocumentClosed(word, doc);
// doc = null;
// word = null;
//}
public void Edit_Document(bool runmacros)
{