For years I have never thought about trapping the Print selection Dialog 'cancel' button .. here is my code... I would be grateful if someone could point out how I can modify this code to trap the cancel button from the Printer select dialog:
- Code: Select all Expand view
IF mVIEW = "V"
// trap printer dialog cancel button from here
PRINTER oPRINT FROM USER ;
PREVIEW MODAL ;
NAME "Master Property Rpt for "+xLOGIN
ELSE
PRINTER oPRINT from USER ;
NAME "Master Property Rpt for "+xLOGIN
IF EMPTY( oPRINT:hDC )
MsgStop ( "Printer not Ready !" )
CLOSE DATABASES
oDlg:END()
RETURN(NIL)
ENDIF
ENDIF