printing using webrowser control in landscape by default

im generating one report page ,i want to print that report page using webbrowser control, it prints in portrait mode but i want it in landscape
Note:it should be done automatically,ther is no use interface
thanks in advance
yuvarajan G.
Who is Participating?
I'm not very sure how do you generate your report. Basically, if your report is generated with RS it should work as you designed it.
If you are generating a HTML that you want to print, all you have to do is to declare in a .css a style for the printer (look at MEDIA too to understand)
<style type="text/css" media="print"> ...</style>

is the W3C specification for css printing properties, you can find there the size property that controls the pagesize/orientation.

But you may experience some troubles with older IE's, remeber that you're instatiating a webbrowser control.
There's also:

Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.