Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prompt for Printer when Chaining Reports
Message
 
À
15/05/2005 09:26:03
Lynn Bleck
Cents-Able Business Systems
Concord, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00978636
Message ID:
01014850
Vues:
27
>I have been researching this SYS(1037) option all weekend. Thanks for the contact.
>
>I have a legacy stand-alone exe that allows the user to print for example: checks. In VFP70 and VFP80 I would call the SYS(1037) to allow the user to change the printer and custom paper size immediately before the report started to print and it worked fine even if the default printer was not selected. Now, VFP90 SYS(1037) only allows changes to the default printer when the reportengine is set to 80. It necessitates changing the desired printer to default before printing.
>
>I have tried getprinter(), but this only allows changing the printer and NOT paper size.
>
>This is causing all kinds of problems for my customers and I need to find a solution ASAP. Please advise..thank you.
>
>Lynn


Check to make sure you don't have the printer environment saved with the report itself. This could be messing up what you are trying to do. I did a simple test of SYS(1037) and it works okay for me in 80 and 90 mode. This is what I did ....
SET REPORTBEHAVIOR 80
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)
=SYS(1037)
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)

SET REPORTBEHAVIOR 90
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)
=SYS(1037)
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform