Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set print to ignored when printing a report
Message
De
15/04/1999 14:10:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00208639
Message ID:
00208688
Vues:
23
>I've read the messages here and the microsoft knowledge base regarding the tag and tag2 field in the FRX file. It appears specific printer information is stored in these fields as well as the expr field. However, in my test it seems that the SET PRINT TO command is ignored whether theres data in these fileds or not. I issue a SET PRINT TO command before printing a report form and it always prints to the default printer. I've tried the following scenarios all to no avail;
>- Saved the report form specifying an existing printer. Deleted the TAG TAG2 and EXPR fields. Issued the SET PRINT TO command selecting a non-default printer and printed the report.
>- Saved the report form specifying an existing printer. Deleted the printer. Issued the SET PRINT TO command selecting a non-default printer and printed the report.
>- Saved the report form specifying an existing printer. Deleted the printer,deleted the TAG TAG2 and EXPR fields. Issued the SET PRINT TO command selecting a non-default printer and printed the report.
>
>All these scenerios produces the same result. The report was always printed to the default printer.
>
>Any ideas?
>
>Graciously yours,
>Darryl R. Maloney
>BBL Systems, Inc.
>Atlanta, GA.

What does your SET PRINT TO command look like. Try this:

SET PRINTER TO NAME (GETPRINTER())

and see if that will change the printer for you. If it does, you just need to keep a list of the printer names and use that to change the printer.

Example:

cLocalPrinter = "Okidata OL-410e"
SET PRINTER TO NAME (cLocalPrinter)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform