MgtHargreaves
Programmer
thread184-1384177
Using the following code :
is it possible to detect whether the user has clicked on 'Cancel' in the printer dialog box ?
Margaret
Using the following code :
Code:
#DEFINE wdDialogFilePrintSetup 97
oWord = CreateObject("Word.Application")
oWord.Documents.Add("C:/xxxx/yyy.dot")
WITH oWord.Dialogs(wdDialogFilePrintSetup)
.Printer=GETPRINTER()
.DoNotSetAsSysDefault = .t.
.execute()
ENDWITH
oWord.printout(0)
oWord.ActiveDocument.Close(0)
is it possible to detect whether the user has clicked on 'Cancel' in the printer dialog box ?
Margaret