>>Hi,
>>
>>I have a routine/procedure for previewing reports. Here is the code:
>>
>>
>>
>>DEFINE WINDOW RepWindow ;
>> FROM 1, 1 TO 20, 20 ;
>> TITLE "Report Title"
>>
>>ZOOM Window RepWindow Max
>>
>>WAIT CLEAR
>>
>>REPORT FORM (cReportFrxName) TO PRINTER PROMPT PREVIEW WINDOW RepWindow
>>
>>RELEASE WINDOW RepWindow
>>
>>
>>This preview shows a preview toolbar (that has Next Page, Prev Page, and Close Preview buttons). But if user clicks on the x in the upper-right corner of this toolbar, the toolbar is closed and there is no way to close the report preview.
>>
>>My question is, can a user at run-time (if he closes the preview toolbar) to reopen it? And how can the preview window be closed without the toolbar?
>>
>>TIA
>
>For the second question - did you try pressing ESC?
Do you know of any way to make the preview window (RepWindow) to have the upper-right x enabled? Right now I can see this (x) but it is disabled. Therefore I was thinking that maybe I am missing some option in the DEFINE WINDOW command.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham