Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Webcontrol to print landscape

Reply
 
Old 10-01-2009   #1 (permalink)
ngrTerry


 
 

Webcontrol to print landscape

I have a html page in the webbrowser and it is too wide to print on A4
Portrait.

What I need to be able to do is set the page orientation to landscape
for this print.

At the moment I am showing webcontrol1.print, but I can not see any
means of setting the orientation to landscape in code.
I know the user can do this in the print dialog box, but I want this
to be user friendly so that the user can just choose print and off it
goes without them having to set the thing up to landscape every time.

I have tried:
Dim h As System.Windows.Forms.HtmlDocument
h = WebBrowser1.Document
but there seems to be no property available to set the orientation of
the print dialog to landscape by default for this report page I am
writing.

We are trying to get away from Crystal Reports for reports as the
report style looks a bit outdated (on our version anyway) and it is
limited as to how we can present our data.
We can get the desired result in html but unable as I say to get the
thing to print sideways.

Can anyone please assist?

Thanks in advance for any feedback.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Excel and vista x64 - landscape printing? Microsoft Office
Unable to rotate display from landscape to portrait Vista General
Portrait photos displaying as Landscape- how to fix all at once? Vista music pictures video
Print pictures forces landscape orientation Vista music pictures video
Printing of Tiff always comes out as landscape in Vista Vista print fax & scan


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46