This commit is contained in:
parent
a8a1edd4fd
commit
1412d3ac81
@ -555,6 +555,14 @@ namespace VEPROMS.CSLA.Library
|
||||
fileName = CreatePDF(fileName, openPdf);
|
||||
MyApp.ActiveDocument.Close(false);
|
||||
if (CloseWordWhenDone)
|
||||
{
|
||||
CloseApp();
|
||||
}
|
||||
return fileName;
|
||||
}
|
||||
}
|
||||
|
||||
public static void CloseApp()
|
||||
{
|
||||
WaitMS(300);// This was added because MSWord will sometimes get the error below
|
||||
// Microsoft Office Word has stopped working
|
||||
@ -563,9 +571,6 @@ namespace VEPROMS.CSLA.Library
|
||||
MyApp.Quit(false);
|
||||
_MyApp = null;
|
||||
}
|
||||
return fileName;
|
||||
}
|
||||
}
|
||||
private static void WaitMS(int n)
|
||||
{
|
||||
DateTime dtw = DateTime.Now.AddMilliseconds(n);
|
||||
|
Loading…
x
Reference in New Issue
Block a user