Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppressing Printing in Preview Mode
Message
De
18/01/2001 12:16:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00465125
Message ID:
00465208
Vues:
15
>>>>>I would like to know if there is a way to prevent the user from printing a report while previewing a report. I would like to build a demo version that allows the user to view but not print the report.
>>>>>
>>>>>Thanks in advance.
>>>>
Try
REPORT FORM YourReport NOCONSOLE PREVIEW WINDOW TO FILE NUL
>>>
>>>You should submit this a faq
>>
>>This code does not work.
>

>You are right,
>
>Try
REPORT FORM YourReport NOCONSOLE PREVIEW IN SCREEN TO FILE NUL
>instead.
>
>That will work.
>The output is then directed to the nul device which means that there is no output at all.
>You have to include the IN SCREEN or otherwise IN WINDOW windowname, or otherwise it will error on a missing comma. (probably a small bug in VFP.)

Although the code will produce a preview window, the print feature is still enabled and working.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform