printing using webrowser control  in landscape by default

Posted on 2007-10-10
Last Modified: 2013-12-17
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.
Question by:yuvarajanganapathy
    LVL 9

    Accepted Solution

    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:

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now