Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Paper and Printer
Message
De
06/07/1998 06:23:09
 
 
À
02/07/1998 09:26:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00113750
Message ID:
00114472
Vues:
18
>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
Fil
Voir

Click here to load this message in the networking platform