Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paper and Printer
Message
From
06/07/1998 06:23:09
 
 
To
02/07/1998 09:26:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00113750
Message ID:
00114472
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform