>I return with the following question:
>
>There are some API function of the Windows 95 that
>can change the printer and paper size?
>
>I'd like to select paper size and printer in some
>situations in Visual Fox Pro, without user interaction.
>
>Thanks for help.
Hi,
When you are using reports, it may be enough to specify a different page size in the page setup dialog box of the report.
Another way, which I use to print the same thing to different paper trays, is to define two printers in windows for the same printer, with different settings.
If you've got an HP Laserjet for instance, you could define a new printer called 'HP Laserjet - Legal' for printing on legal size paper. You would then execute the command SET PRINTER TO NAME "HP Laserjet - Legal", and then print the report or text.
If your report still prints on the wrong printer, try deleting the page setup information from the first record of YourReport.FRX (You have to clear the TAG and TAG2 fields, and another one that contains the page setup like in a .INI file.)
Marc Van Riet
Précédent
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