Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preview a report without having the title of the designe
Message
 
À
24/11/1998 21:25:02
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00161176
Message ID:
00162457
Vues:
31
Hi, Nancy! Thank you for your tip about the menu and it worked. I am using VFP 3.0. I still have problems with how to display a report in a user-defined window. I defined a window, activated it, and issued REPORT FORM myreport. The last page of the report was shown in the window, but how could I add scroll bars to the window? Thank you!

>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform