使用Lodop打印插件制作打印页面

JS代码

function prn1_preview() {

        LODOP = getLodop();

        LODOP.PRINT_INIT("XXXXX");  //打印页面标题

        //LODOP.SET_PRINT_PAGESIZE(2, 0, 0, "A4");

            

        LODOP.ADD_PRINT_URL("0", "0","100%", "100%", "../xxx/print.aspx?id=<%=Request.QueryString["ID"]%>");

             LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Height");

             //LODOP.SET_SHOW_MODE("LANDSCAPE_DEFROTATED",1);//横向时的正向显示



             //LODOP.SET_PREVIEW_WINDOW(0, 0, 0, 800, 600, "");

             LODOP.PREVIEW();

             //LODOP.PRINT_DESIGN();

         };    

 

插件地址

链接: http://pan.baidu.com/s/1c0vqfrq 密码: zrq3

官网地址

http://www.lodop.net/

 

你可能感兴趣的:(插件)