views:

479

answers:

1

I need to programmatically change the print orientation for one of my webbrowser controls in a winforms app. From what I'm reading in other posts... it looks like the only way to do it is via a programmatic registry edit, print, then change the registry back.

Is this the only solution? If so, can anyone help with the correct way to do this in code?

A: 

Have you tried: printDialog.Document.DefaultPageSettings.Landscape = true;

KrisTrip