Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent preview of report in design time?
Message
 
 
À
04/09/2001 10:42:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00552030
Message ID:
00552347
Vues:
27
>>>>Hi!
>>>>
>>>>Is it possible to prevent at all previewing of the report during designing? When putting return .F. in the Init and BeforeOpenTable in data environment of the report, this works only in design time. When standalone VFP EXE run, this does not works.
>>>
>>>Vlad,
>>>
>>>I don't understand, at what moment do you get an undesired report preview? Or do you want to stop your end-users from having access to the preview feature?
>>>
>>>Hilmar.
>>
>>Stop end-users from having access to the preview feature when they designing report. This is in run-time. NOT in design time or when running EXE from VFP design environment.
>
>How about removing the menu option and toolbar icon?

Well, how to remove them? Preview option is also in the shortcut menu when right click on the report. Hoe to get rid of it? Also, I do not know way how to remove the Previe button from the standard VF toolbar for report designer. The toolbar is needed, but Preview should not work. If you know how to make some code snippet run just after the Preview option selected and before report start to render any data in it, it would be possible to kill preview window using windows API functions. Unfortunately, data environment code do not run at all when we design report and then run it inside of the standalone EXE in the run-time mode. Anyone know way how to add code to reord data environment on the fly and run it correctly in run-time? In design time it works, and return .F. from BeforeOpenTables abnd Init events cause report do not run. See also other my answer about why it is not possible to prepare data.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform