Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing printers programmatically
Message
 
To
09/11/2000 06:57:46
Gad Hutt
Express Print
Herzliya, Israel
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00439583
Message ID:
00439608
Views:
11
>Hi All,
>I have 3 kinds of paper for my reports.
>In the client site there is a printer (HP 2100TN) that has three paper treys.
>It is a network printer and my solution for accessing the right paper trey was to define 3 different printers on the computer, each one prints to a different trey.
>1. My first Q is if anyone has a better idea for chossing the right trey...?
>2. If not, my problem is that I can't seem to change to the right printer.
>The first one is defined as "letterhead"
>The second one is defined as "jobsheet"
>
>In the code I wrote the following:
>
>SET PRINTER to NAME letterhead
>SET PRINTER ON
>REPORT FORM ... TO PRINTER
>
>the application of course doesn't change, and the paper prints to the "jobsheet" printer.
>
>I've tried to write "SET PRINTER TO" before the above code, with no change.
>
>Any Ideas??
>
>Many thanks,
>Gadi


Gadi,

Hack the .FRX file to remove any printer-specific info.
USE rptname.frx
GOTO TOP
REPLACE TAG with '', TAG2 WITH ''
USE
Cathy
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform