update 20241210
This commit is contained in:
@@ -38,7 +38,13 @@ namespace OfficePrinter
|
||||
wordDocument = appWord.Documents.Open(Filename);
|
||||
appWord.Visible = true;
|
||||
if (printmacro == "") return;
|
||||
appWord.Run(printmacro);
|
||||
try
|
||||
{
|
||||
appWord.Run(printmacro);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
wordDocument.Close();
|
||||
wordDocument = null;
|
||||
appWord.Quit(SaveChanges: false);
|
||||
|
||||
Reference in New Issue
Block a user