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
regards
yuvarajan G.
yuvarajanganapathyAsked:
Who is Participating?
 
ripahoratiuCommented:
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>

http://www.w3.org/TR/2004/CR-css-print-20040225/#section-properties

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:
http://www.tek-tips.com/faqs.cfm?fid=5803


0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
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.