>Hi all,
>I'm having a problem doing a print preview from a form. All works fine until I do a print preview of a report from the form and then close the preview to return to the active form. Everything look like it did when I left until I try to perform any action on the form. The "OPEN" file dialog box pops up asking to open a file. Any ideas as to what might be the problem? This may seem trivial to some but I'm a fairly new at VFP and this one has me confused. BTW, I do have private data session set for both the form and the report and I'm using a "view" for the report. Any help would be appreciated, Thanks.
Jamie, check your data sessions. It sounds like you are using a report with the default datasession. In the case of a report, it 'defaults' to the datasession of the calling form, just as a modal form does. If your report datasession has AutoCloseTables set to .T. (I think this is the default) you will be closing your FORM tables as well.
To get around this, you can set AutoCloseTables to .F. or use a Private datasession for the report.
HTH
Barbara