Printing document in text mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getmeidea
    New Member
    • Feb 2007
    • 36

    Printing document in text mode

    Hi all,

    [CODE=javascript]function printReport() {
    frames['iframeReport'].print();
    }[/CODE]

    The function printReport prints the specified iframe, iframeReport.
    I am using dot matrix printer. I want it to be printed in text mode so that the printing will be done much faster.

    How can i print this in text mode.

    Thank you,
    Last edited by gits; Dec 22 '07, 11:43 AM. Reason: added code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You don't have much control over printing using JavaScript.

    The best thing to do is to create a text version and print that instead. You can use print media stylesheets (probably the better method) or JavaScript.

    Comment

    • getmeidea
      New Member
      • Feb 2007
      • 36

      #3
      Thanks for your solution.

      I don't have very good idea in specifying print medial through style sheet. I have searched for it in web but i couldn't find out.

      Can you send me some examples that specifies print media through stylesheet , or some url for the reference.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        hi ...

        have a look here

        kind regards

        Comment

        Working...