Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API call to change printer orientation to landscape
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00764222
Message ID:
00764312
Views:
42
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.
>
>==>
Previous
Reply
Map
View

Click here to load this message in the networking platform