Lodop use and pagination plus how many copies each page is printed

Source: Internet
Author: User

<! DOCTYPE html>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title></title>
<script src= "Scripts/lodopfuncs.js" ></script>
<object id= "Lodop_ob" classid= "Clsid:2105c259-1e0c-4534-8141-a753534cb4ca" width=0 height=0>
<embed id= "Lodop_em" type= "Application/x-print-lodop" width=0 height=0></embed>
</object>

<script type= "Text/javascript" >
var Lodop = Getlodop (document.getElementById (' Lodop_ob '), document.getElementById (' Lodop_em '));
var Lodop = Getlodop ();

function Createprintpage () {

Fixed data

Lodop. Print_inita (-8,-7, 406, 295, "");
Lodop. Set_print_pagesize (1, the "CreateCustomPage");
Lodop. Set_print_style ("FontSize", 11);
var a =[1,2,3];

Total
for (var i = 0; i < 3; i++) {

Pagination printing control how many copies per page
for (var j = 0; J < A[i]; J + +) {

To change the paging of data

Lodop. Add_print_rect (7, "68mm", "37.99mm", 0, 1);
Lodop. Add_print_rect (7, "68mm", "6.51mm", 0, 1);
Lodop. Add_print_rect (98, 7, 257, 35, 0, 1);
Lodop. Add_print_rect (39, 7, 77, 117, 0, 1);
Lodop. Add_print_text (19, 82, 119, 15, "Ming Ming Electronic Material label");
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (43, 14, 69, 15, "material name");
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (the "MMT number");
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (111, 10, 68, 15, "lot number");
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (136, 11, 68, 15, "Quantity");
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (A, mcc-t2-140912, and A[i]);
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (137, 103, 96, 15, "200");
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (n/A, 151, "Yj00130" + a[i]);
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_text (101, N, 166, "g0201yj01301502201");
Lodop. Set_print_stylea (0, "FontSize", 9);
Lodop. Set_print_stylea (0, "Bold", 1);
Lodop. Add_print_barcode (166, "128Auto", "g0201yj01301502201");
Lodop. Set_print_stylea (0, "FontSize", 0);
Lodop. Set_print_stylea (0, "Showbartext", 0);
Lodop. Add_print_barcode (166, "128Auto", "g0201yj01301502201");
Lodop. Set_print_stylea (0, "FontSize", 0);
Lodop. Set_print_stylea (0, "Showbartext", 0);
Lodop. Add_print_text (158, 130, 100, 14, "200");
Lodop. Newpagea ();//pagination


}

}
Lodop. Preview (); Print previews

}
Print Preview
function Print_view () {
Createprintpage ();
Lodop. PREVIEW ();
}

Printing method:
function print () {
Createprintpage ();
Lodop. PRINT ();
}

Print Maintenance:
function Print_setup () {
Createprintpage ();
Lodop. Print_setup ();
}

Print Design:
function Print_design () {
Createprintpage ();
Lodop. Print_design ();
}
</script>
<body>
<!--<div id= "Div3" >
<table border= "1" width= "100%" height=120px cellspacing=0 style= "margin:0px Auto" >-->

<!--<tr align= "center" >
<th colspan=5 style= "height:50px;font-size:25px" >

<div style= "margin-top:20px" > <b> Ming Ming Electronic Product labeling </b> </div>
</th>
</tr>

<tr>
<th>
Name
</th>
<th colspan= "3" style= "height:40px" >
<span style= "Float:left" > 510 motherboard 20s</span>
</th>
</tr>
<tr>
<th>
Model
</th>
<th colspan= "3" style= "height:60px" >
<span style= "Float:left" > </span>
</th>
</tr>
<tr>
<th>
Batch
</th>
<th colspan= "3" style= "height:60px" >
<span style= "Float:left" > </span>
</th>
</tr>
<tr>
<th style= "height:40px" >
Number
</th>
<th>
<span>100</span> <span style= "margin-left:20px" >PCS</span>
</th>
<th>
Test person
</th>
<th>
0111
</th>
</tr>-->
<!--<tr style= "height:40px" >
<th style= "width:260px" > Serial number </th>
<th style= "width:260px" > Product name </th>
<th style= "width:260px" >L/N</th>

<th style= "width:260px" > Number of Leads </th>
<th style= "width:260px" > Points </th>
</tr>
<tr style= "height:30px" >
<th style= "width:260px" >1</th>
<th style= "width:260px" > Second piece sssssssssssssssssssssssssss</th>
<th style= "width:260px" > Third ssssssssssssssssssssssssssss</th>
<TD style= "width:260px" > First </td>
<TD style= "width:200px" > Second </td>

</tr>-->


<!--</table>
</div>-->
<button Onclick=print_view () > Print preview </button>
<button onclick=print () > Printing </button>
<button onclick=print_setup () > Print Maintenance </button>
<button onclick=print_design () > Print design </button>
</body>

Lodop use and pagination plus how many copies each page is printed

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.