ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalu_5.4.0.1/rzaluuseddsabsolutexmp.htm

67 lines
4.1 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!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" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<title>DDS absolute positioning source code</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rzaluuseddsabsolutexmp"></a>
<h4 id="rzaluuseddsabsolutexmp">DDS absolute positioning source code</h4>
<a name="wq250"></a>
<div class="notetitle" id="wq250">Note:</div>
<div class="notebody">Read the <a href="rzalucodedisclaimer.htm#rzalucodedisclaimer">Code disclaimer information</a> for important
legal information.</div>
<p>Absolute positioning means being able to start printing at any point on
a piece of paper by specifying that point.</p>
<p>Use of absolute positioning requires the Advanced Function Presentation&trade; data stream. This is obtained on i5/OS by specifying *AFPDS on the device
type (DEVTYPE) parameter of the printer file.</p>
<p>Inches or centimeters are the measurement methods available. You choose
the measurement method by specifying *INCH or *CENT on the unit of measure
(UOM) parameter of the printer file.</p>
<p>The following shows DDS coding using the absolute method of positioning.</p>
<pre class="xmp">000100911101 R LABEL PAGSEG(LOGO 1.5 1)
000200911101 BOX(1 1 5 4 *MEDIUM)
000300911101 BOX(1.5 4 2 4.5 *NARROW)
000400911101 NAME 25A O POSITION(1.3 1.6)
000500911101 ADDR1 25A O POSITION(1.5 1.6)
000600911101 CITY 15A O POSITION(1.7 1.6)
000700911101 STATE 2A O POSITION(1.7 2.7)
000800911101 ZIPCD 5S 0O POSITION(1.7 3)
000900911101 BARCODE(POSTNET *HRITOP)
f01000911101 TEXT 20A O TXTRTT(270)
000800911101 POSITION(1.9 .25)
001100911101 FONT(5687 (*POINTSIZE 6))</pre>
<p>In this example, a page segment called LOGO is specified to start printing
at 1.5 units down and 1 unit in. The TEXT record (Made in the USA) is supplied
by the application program. The UOM parameter value (*INCH or *CM) of the
printer file determines which unit of measurement is used.</p>
<p>The following figure shows the output achieved using absolute positioning.
This figure highlights the additional features that absolute positioning provides
by using boxes (indicating where the stamp goes) and page segments (the pencil-type
logo).</p>
<a name="wq251"></a>
<div class="fignone" id="wq251">
<div class="mmobj">
<img src="rv2h335.gif" alt="Output achieved using the absolute positioning method" /></div></div>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>