Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    print a word document with hiden print dialoge box

    using this code it can print with disabling the print dialoge
    so when pess a button it print the page direct but i need
    the same with change that when i press a button to print
    a word document pcall p.s print.doc not to print the viewed
    display

    this code can print the view display can be modefyed to
    make to print a word document

    this code that writen by requestcode
    <html>
    <head>
    <title>Print Test</title>
    <script>
    function Print()
    {
    if (document.all)
    {
    WebBrowser1.ExecWB(6, 6) //use 6, 1 to prompt the print dialog or 6, 6 to omit it;
    WebBrowser1.outerHTML = "";
    }
    else
    {
    window.print();
    }
    }
    </script>
    </head>
    <body>
    <object ID="WebBrowser1" WIDTH="0" HEIGHT="0"
    CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    </object>
    <A HREF="#" onClick="Print()">Print this page</a>
    </body>
    </html>

  • #2
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    up up up up up up up up up up up up

    is there any one have any idea


  • #3
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    'eck

    This is more of a JS question....get a mod to move it there


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •