Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Multiple Reports with one print dialog box
Message
 
 
À
09/05/2004 19:06:36
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00902326
Message ID:
00902327
Vues:
28
Randy,

See Re: Changing printer from default Message #856526.

>One of my users is reporting a problem with my application. I have a form with a view button and a print button.
>
>The view button is coded with:
>
>REPORT FORM workorder PREVIEW NOCONSOLE
>
>The print button is coded with:
>
>REPORT FORM workorder TO PRINTER PROMPT NOCONSOLE
>
>Later in the code a SECOND report is sent to the printer:
>
>REPORT FORM order TO PRINTER noconsole
>
>The problem is that when the user clicks the print button and get the print dialog box if they click cancel, they second report still prints.
>
>I couldn't find any easy way to tell if they clicked the cancel button, so I started looking at the GETPRINTER() function. It seems that I can check if they selected cancel or not and then set the printer with the SET PRITNER TO NAME command. The problem is that it never prints to the selected pritner, it always uses the default printer. Maybe there is pritner info hard coded into the report???
>
>Any ideas?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform