Why is this code reprinted by too many people?

Source: Internet
Author: User

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?

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.