Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force output to selected printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00826239
Message ID:
00826485
Vues:
20
Your workaround is the correct answer. You must strip out the printer-specific information before it will honor you setting the printing. Otherwise, it thinks it is smarter than you and sends it to the printer defined in the report.

FWIW .. in VFP 8 there's a checkbox that lets you turn off the annoying behavior of saving printer information with the report.

Cathy


>How do I force a report to be printed to a specified printer, wich is not the default windows printer nor the one wich was selected at report's design time?
>
>More clearly:
>My program has these lines:
>m.myprinter = "Epson FX-810"
>* I'm sure this one exists since it's returned by aprinters()
>Set printer to name (m.myprinter)
>Report form Myreport to printer
>
>The report is sent to another printer (i.e. "HP 600") wich is the one that was the default printer by the time I designed the report.
>
>My workaround has been to open the report file (use myreport.frx) and clean the contents of the fields Expr, Tag and Tag2 at the first record.
>
>Is there any other way to force the output to (m.myprinter) programmatically?
>
>TIA
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform