Function setprintsettings (){
// -- Advanced features
Factory. Printing. setmarginmeasure (2) // measure margins in inches
Factory. setpagerange (false, 1, 3) // need pages from 1 to 3
Factory. Printing. Printer = "HP Deskjet 870c"
Factory. Printing. Copies = 2
Factory. Printing. collate = true
Factory. Printing. papersize = "A4"
Factory. Printing. papersource = "manual feed"
// -- Basic Features
Factory. Printing. header = "this is meadco"
Factory. Printing. footer = "advanced printing by scriptx"
Factory. Printing. Portrait = false
Factory. Printing. leftmargin = 1.0
Factory. Printing. topmargin = 1.0
Factory. Printing. rightmargin = 1.0
Factory. Printing. bottommargin = 1.0
}
I believe that you have processed web printing, and you must be familiar with this Code. Haha, good, this section is the JS script for processing and printing of scriptx controls outside China.
People who have used it must know that in the code above, only
// -- Basic Features
Factory. Printing. header = "this is meadco"
Factory. Printing. footer = "advanced printing by scriptx"
Factory. Printing. Portrait = false
Factory. Printing. leftmargin = 1.0
Factory. Printing. topmargin = 1.0
Factory. Printing. rightmargin = 1.0
Factory. Printing. bottommargin = 1.0
These attributes are available for free in the trial version of scriptx. That is to say, you can set the header and footer, set the printing direction to either horizontal or vertical, and set four margins. These attributes are basic functions and can be used for free.
// -- Advanced features
Factory. Printing. setmarginmeasure (2) // measure margins in inches
Factory. setpagerange (false, 1, 3) // need pages from 1 to 3
Factory. Printing. Printer = "HP Deskjet 870c"
Factory. Printing. Copies = 2
Factory. Printing. collate = true
Factory. Printing. papersize = "A4"
Factory. Printing. papersource = "manual feed"
These attributes are advanced functions of the scriptx control and cannot be used for free. That is to say, when you have not purchased the official version, you cannot specify a printer; you cannot set printing paper; and you can set the number of copies. An error occurs if it is placed in the code. The eprint custom printing tool contains a small plug-in similar to scriptx, which can use all the low-advanced features in the trial version.
I don't know the code that will cause errors. Why are there so many people reprinting it?