Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Printer
Message
De
27/02/2002 10:48:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/02/2002 10:44:29
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00625774
Message ID:
00625781
Vues:
11
>Hi All,
>I have a problem with printer and reports.
>
>I run my reports twice one to a file to determine pagecount and a second to print.
>
>Now I want to set printer in front of report. I figured out that I need to set printer in front of first run because the settings will change the page (lenght)
>
>REPORT FORM ... PROMPT TO FILE
>
>
>will not work, PROMPT is related to TO PRINTER.
>
>So I use SYS(1037) before first REPORT FORM.
>
>Now users tend to press 'Cancel' and hope to suppress report (I my self would have the same idea?)
>
>But no, I don't see what user hase clicked. I get no notice of printer set - ok no matter I don't need to know - REPORT FORM will know. But I also don't get a message about 'Cancel'
>
>What can I do to prevent printing?
>
>Agnes

How about using GETPRINTER() instead? It seems that sys(1037) "always returns the empty string", wherease GETPRINTER() returns the name of the printer selected - or the empty string if the user cancels.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform