When using the example from faq184-2490 for a print preview window and the user clicks the 'X' in the upper right corner to close the preview window, an error occurs: oprint is not an object.
It works great if the user clicks the 'door' on the tool bar to exit.
I know I can disable the 'X' with closable=.F. but I would like to keep this enabled.
The error is occuring on this line:
oPrint.Release()
How can I do this?
Thanks
David
It works great if the user clicks the 'door' on the tool bar to exit.
I know I can disable the 'X' with closable=.F. but I would like to keep this enabled.
The error is occuring on this line:
oPrint.Release()
How can I do this?
Thanks
David