Hi All
When I do a preview for a report, I use the following code:
oRepForm = CREATEOBJECT("Form"
WITH oRepForm
.Caption = "Print Preview"
.WindowState = 2
.TitleBar = 0
.Show()
ENDWITH
REPORT FORM myreport PREVIEW WINDOW (orepform.name) NOCONSOLE
orepform.release()
However, the print preview toolbar has a close button (top right) and when the user clicks this, the form/report is left open with no way of closing it.
Any suggestions would be appreciated.
Thanks
ITflash