update 20240927
This commit is contained in:
@@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user