Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API call to change printer orientation to landscape
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00764222
Message ID:
00764312
Vues:
41
Rich:

This is from a DBI email:
You cannot force landscape printing.  The paper orientation is set with the print dialog box.
>Chris,
>
>If you are simply calling DBI's PrintSchedule() Method you will not be able to manipulate the Print Job like that. You have to have the Print Job open at the time that you manipulate the printed output. This is what I am doing in the middle of the print jobs in my Report Engine that allows me to switch page orientation on the fly like you can do in MS Word. Now if DBI opened it up to where you could start a Print Job and then manipulate the Page Oreintation and then call the PrintScheduleToDeviceContext() Method or something like that. That would be exactly what you would want. Is there a parameter you could pass to the PrintSchedule Method to change the orientation?
>
>
><==
>
>
>SET LIBRARY TO pdm.fll ADDITIVE
>liOldPO=SetPOrient(SET("PRINTER",2),2)
>WITH thisform.Pgf1.Page1.ctSchedule1
>	.PrintColumns = nColumns
>	.PrintTitle = "AME Project Schedule"
>	.PrintSubTitle = "From "+DTOC(dStart)+" until "+DTOC(dFinish)
>	.PrintTimeDistance = 15
>	.PrintSchedule
>ENDWITH
>
>=SetPOrient(SET("PRINTER",2),liOldPO)The commands SET LIBRARY and SETPORIENT are an attempt to use the pdm.fll. The ".PrintSchedule" command sends the output to the printer. Am not sure how else i could manipulate the printer.
>
>==>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform