General information
Category:
Reports & Report designer
Title:
Changing printers programmatically
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only