ChangePrinterOrient

By | 2002-06-01

NEW NOTE: FROM VB6 SP4 MICROSOFT HAVE ADDED A NEW PROPERTY TO THE DATAREPORT (orientation) WHICH HAS THE SAME EFFECT. SO MY CODE MAY NOT BE REQUIRED.
Using VB6 DataReport writer I hit a problem where it didn’t allow landscape reports unless the default printer was already set to landscape. I didn’t want my users to change there printers so I wrote this function to change the printer orientation to Landscape or Portrait. Calling it before I opened my report.

Original Author: Malcolm Clarke

Side Effects

Changes the default printer to Landscape or Portrait for the Whole of Windows. Be sure to reset it after printing.

Attachments

FileUploadedSize
CODE_UPLOAD692.zip9/3/2020 3:45:00 PM4551
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.