In other words, there are not many web printing contacts. There are a lot of web printing methods on the Internet. What are the use of PDF, Word, Excel, and IE ..
Either it is not suitable for printing projects, or it is complicated. There are also a bunch of third-party controls, such as jatoolsprinter, Sifang,Reyoprint(Ruiyang )....
It is basically the same. Common functions are free (chicken ribs) and advanced functions are charged.(Same for scriptx).... To be honest, it's pretty good...
After reading for a long time, I decided to use it.Scriptx...
Brief Introduction:
Meadco's scriptx Official Website
Basic functions
Advanced functions
Tip Printing
After analyzing the source code on the official demo page, we can see that:
Page load controlCode:
Basic functions page load control code
<Object ID = "Factory" style = "display: none" viewastext classid = "CLSID: 1663ed61-23eb-11d2-b92f-008048fdd814"
Codebase = "smsx. Cab # version = 6, 5, 439,30">
</Object>
Advanced functions page load control code
<Object ID = "secmgr" style = "display: none" viewastext classid = "CLSID: 5445be81-b796-11d2-b931-002018654e2e"
Codebase = "smsx. Cab # version = 6, 5, 439,30">
<Param name = "guid" value = "{19cf4af5-ccd8-4840-ba3c-85eb66d69a6e}">
<Param name = "path" value = "sxlic. MLF"> // authorization File
<Param name = "revision" value = "0">
<Param name = "peruser" value = "true">
</Object>
<! -- Meadco scriptx control -->
<Object ID = "Factory" style = "display: none" viewastext classid = "CLSID: 1663ed61-23eb-11d2-b92f-008048fdd814">
</Object>
Basic functions
Factory. Printing. Print (true) // print the page directly
Factory. Printing. Print (true, idframe) // print the page in the frame
Factory. Printing. pagesetup () // print page settings
Factory. Printing. Preview () // print Page Preview
Advanced functions
Factory. Printing. printhtml (URL) // print the specified URL page
Factory. Printing. printsetup () // print settings, mainly for printing pages, printers, etc.
Other attributes of some factory. Printing objects are not described in detail.
In fact, it is enough to select an application based on the actual needs of the project .. Carefully analyze the officialSource code(Right-click to view the source file.
The address of the attack method can be found on csdn.
Next, I am cracking (not very good, but sometimes forced to be helpless, amount ...) Some problems are encountered. The demo address is as follows:
Bytes
If the file creation process still fails, the following message will always appear: Invalid or missing digital signature (800b010b). Think twice, be careful,
Accidental discovery: <Param name = "path" value = "sxlic.JPG"> JPG extension ???? It turns out that the MLF authorization file name mime ing may cause the authorization to fail to be downloaded to the client.