Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview a report without having the title of the designe
Message
From
24/11/1998 21:25:02
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00161176
Message ID:
00161215
Views:
19
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'
  *!* do some stuff
ELSE
  *!* do some other stuff
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform