JavaScript print preview

后端 未结 10 1452
梦毁少年i
梦毁少年i 2020-12-28 19:46

How can I see print preview of my invoice generated from website. If I print with the script

print this page         


        
10条回答
  •  庸人自扰
    2020-12-28 20:22

    function printReport( )
    {     
        document.getElementById('ImagePrint').style.visibility='hidden';     
        window.print();
        document.getElementById('ImagePrint').style.visibility='visible';        
    }
    

    in html body

    
    

    This function will not show ur image in printing. u can use your control rather than image with control id. hope u will get ur solution

提交回复
热议问题