Microsoft makes PageSet.exe available. PageSet.exe is a self-extracting executable file that contains a DLL file that allows you to programmatically change the printer orientation.
The PageSet.dll allows you to programmatically change and reset your printer orientation. This functionality may be called within the print event of those DBI controls, such as ctSchedule or ctGrid, that have built-in print methods.
Example:
Dim obj As PageSet.PrinterControl
Private Sub Command1_Click() Set obj = New PrinterControl obj.ChngOrientationLandscape ctSchedule1.PrintSchedule obj.ReSetOrientation 'This resets the printer to portrait. End Sub |
The following file is available for download from the Microsoft Download Center:
http://download.microsoft.com/download/vb60pro/Utility/1/WIN98/EN-US/Pageset.exe