Printing is a feature that many web systems need, recently found a powerful, easy-to-use, inexpensive web Printing Tools Lodop, free also can use, but there are watermarks, not expensive commercial development advice to buy.
Don't say much, take it and start with a simple print.
1. Download, put in the project, introduce the control.
<Scriptlanguage= "JavaScript"src= "~/content/lodop6/lodopfuncs.js"></Script><ObjectID= "Lodop_ob"ClassID= "Clsid:2105c259-1e0c-4534-8141-a753534cb4ca"width=0Height=0> <EmbedID= "Lodop_em"type= "Application/x-print-lodop"width=0Height=0pluginspage= "Install_lodop32.exe" /></Object>
2. Reference in the button, make a print area
<type= "button" id= "print" value= "Printing"/ ><id= "Divprintview"> print content </ div>
Binding Print Events in 3.js
$ (". Print"). Click (function () { var lodop = Getlodop (); Lodop. Print_init ("Custom name, printed identification Mark"); Lodop. Set_print_pagesize (1, 0, 0, "A4"); // define paper, orientation Lodop. Add_print_htm (0, 0, "100%", "100%", $ (". printhtml"). html ()); // define the content and location of the print Lodop. PREVIEW (); })
Lodop Simple printing is complete, setup and extension, available in the technical documentation provided by LODOP.
The use of powerful web print control Lodop