• Home >Web Front-end >JS Tutorial >JavaScript implements web page printing processing_javascript skills

    JavaScript implements web page printing processing_javascript skills

    WBOY
    WBOYOriginal
    2016-05-16 19:14:22946browse

    1. Control "vertical", "horizontal" and "page margins".
    (1)


    2)




    onclick="javascript:printit()">
    #111nclick="javascript:printsetup();"> onclick="javascript:printpreview();">

    onclick="javascript:window. close();">

    WebBrowser.ExecWB(1,1) Open Web.ExecWB(2,1) Close all current IE windows and open a new window
    Web.ExecWB (4,1) Save web page
    Web.ExecWB(6,1) Print
    Web.ExecWB(7,1) Print preview
    Web.ExecWB(8,1) Print page settings
    Web .ExecWB(10,1) View page properties
    Web.ExecWB(15,1) It seems to be revoked and needs to be confirmed
    Web.ExecWB(17,1) Select all
    Web.ExecWB(22,1 ) Refresh
    Web.ExecWB(45,1) Close the form without prompt


    2. Paging printing













    3. How to remove the path at the bottom of the page and the page number at the top when printing an ASP page
    ( 1) In Internet Explorer's File->Page Settings->Remove everything in the header and footer, it will not print out. (2)



    New Document
























    4. Floating frame printing

    4. Use FileSystem component to implement local specific printing in WEB applications


    Server-side script:
    set conn=server.CreateObject ("adodb.connection") conn.Open "DSN=name;UID=XXXX;PWD=XXXX;"
    set rs=server.CreateObject("adodb.recordset")
    rs.Open("select..."),conn, 1,1
    ………….%> //Interact with the database
    HTML page encoding:

    ………


    > " id=print name=print > //Call the print function
    > //Save the data sent from the server …………


    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn