Click to See Complete Forum and Search --> : Runtime Printer Setting


January 22nd, 2000, 04:23 AM
Hi

I have a specific problem related with setting the printer object properties at runtime. In my application which is being developed using VB6.0, I am using data reports to generate reports. My reports looks fine when the printer settings are set to 'Portrait'. However, when the same is changed to 'Landscape',the report is displayed in a haphazard way.

I hereby request to tell how I can change the printer setting to 'Portraint' despite there is a change in the same in windows?

I would appreciate, if you could give me your reply at your earliest

Thanking you

PCS

johnpc1
January 22nd, 2000, 03:28 PM
Try this in your code,

Printer.Orientation = vbPRORLandscape