Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 500
  • Last Modified:

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.
0
yuvarajanganapathy
Asked:
yuvarajanganapathy
1 Solution
 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now