Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement