Hi, Rob.
First, you need to do a check in your menu before using Activeform. Generally, try adding this:
IF TYPE( '_screen.activeform.name' ) = 'C'
ELSE
ENDIF
Secondly, you will probably need to simply preview in a window you have defined with the caption you want. If you need more suggestions on how to do this, let me know and also, which version of VFP you are using.
HTH
>Hi, everyone!
>
>I have designed a report and want to able to both print it out and preview it on the screen. When I use "REPORT FORM myForm PREVIEW", I encounter two issues. First, the user will get an error if he clicks the menu bar I build; the message says, "Activeform is not an object". My solution is to create a dummy menu from VFP's system menu. It is not very slick but seems to be doing the job. The second and unsolved issue is that the caption of the window containing the report is now showing something like "Report Designer: myReport.frx". I used _Screen.Caption trying to replace it with something more user-friendly, but it only changed the caption of the screen of my application. I assume I could go for API calls, but it sounds like an overkill...
>
>I would appreciate it greatly if you would point to me the right directions for both of the issuses.