-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathoriginal.html
More file actions
68 lines (59 loc) · 2.91 KB
/
original.html
File metadata and controls
68 lines (59 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>DYMO Label Framework JavaScript Library Samples: Preview and Print Label</title>
<link rel="stylesheet" type="text/css" href="https://www.ricompro.it/content/tools/dymo/v2/assets/PreviewAndPrintLabel.css" />
<script src = "https://www.ricompro.it/content/tools/dymo/v2/js/jquery-1.4.2.min.js" type="text/javascript" charset="UTF-8"> </script>
<!--<script src = "http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js" type="text/javascript" charset="UTF-8"> </script>-->
<script src="https://www.ricompro.it/content/tools/dymo/v2/js/DYMO.Label.Framework.3.0.js" type="text/javascript" charset="UTF-8"></script>
<script src = "https://www.ricompro.it/content/tools/dymo/v2/js/PreviewAndPrintLabel.js" type="text/javascript" charset="UTF-8"> </script>
</head>
<body>
<h1>DYMO Label Framework JavaScript Library Samples: Preview and Print Label</h1>
<div class="header">
<div id="sampleDesctiption">
<span>
This sample shows how new DYMO Label Framework JavaScript Library can be used to display a WYSIWYG label preview as well as loading label from a local file and print it. This sample demonsrates:
<ul>
<li>Using dymo.label.framework.openLabelXml() and openLabelFile() to load label definition for further manipulation</li>
<li>label.getAddressText() and setAddressText() to read and set address information on a Address object</li>
<li>label.render() to generate label preview</li>
<li>dymo.label.framework.getPrinters() to get information about installed DYMO printers</li>
<li>label.print() to print the label</li>
</ul>
Note: the preview does not work in Internet Explorer 6 and Internet Explorer 7.
</span>
</div>
</div>
<div class="top">
<div class="left">
<!-- <div id="labelFileSelection">
<label for="labelFile">Select label file: </label>
<input type="file" id="labelFile" name="labelFile"/>
</div>
-->
<div id="addressDiv">
<label for="addressTextArea">Current address:</label><br/>
<textarea name="addressTextArea" id="addressTextArea" rows='5' cols='40'>
</textarea>
</div>
</div>
<div class="content">
<div id="labelImageDiv">
<img id="labelImage" src="" alt="label preview"/>
</div>
<div class="printControls">
<div id="printersDiv">
<label for="printersSelect">Printer:</label>
<select id="printersSelect"></select>
</div>
<div id="printDiv">
<button id="printButton">Print</button>
<!-- <a id="printButton"><img src="" alt=""/>Print</a>-->
</div>
</div>
</div>
</div>
</body>
</html>