Article ID: 198901 - Last Review: August 5, 2004 - Revision: 2.3 SAMPLE: PageSet.exe Programmatically Changes Default Printer OrientationThis article was previously published under Q198901 On This PageSUMMARY PageSet.exe is a self-extracting executable file that
contains a DLL file that allows you to programmatically change the printer
orientation. This DLL is particularly useful when dealing with the Data Report, which reads the default printer orientation prior to displaying or printing a report. PageSet.exe allows you to programmatically change and reset your printer orientation. NOTE: Microsoft Visual Studio 6.0 Service Pack 4 introduces a new property called Orientation for Data Report. For additional information, click the article number below to view the article in the Microsoft Knowledge Base: 261193
(http://support.microsoft.com/kb/261193/EN-US/
)
FIX: Error Message 'Report Width is Larger Than the Paper Width' When Showing Data Report in Landscape
MORE INFORMATIONThe
following files are available for download from the Microsoft Download
Center: Pageset.exe
(http://download.microsoft.com/download/vb60pro/utility/1/win98/en-us/pageset.exe)
Release Date:
Apr-13-1999For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Collapse this table
NOTE: In the preceding application you are resetting the printer in the Form_Unload event. The printer must be reset back to the default orientation. If not, any print job sent to the network printer will be printed using the orientation set by your program. DisclaimerWARNING: ANY USE BY YOU OF THE CODE PROVIDED IS AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. | Article Translations
|

Back to the top
