首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >条码定位的Dymo JavaScript打印

条码定位的Dymo JavaScript打印
EN

Stack Overflow用户
提问于 2017-03-28 17:37:35
回答 1查看 517关注 0票数 1

我有一个在Dymo打印机上打印条形码的应用程序。没问题。我按照指示创建了一个用于打印参数的XML文件。我能弄明白的是如何把条形码标签放在文本下面。我到处找遍了,什么也找不到。以下是我的XML:

代码语言:javascript
复制
 '<?xml version="1.0" encoding="utf-8"?>\
  <DieCutLabel Version="8.0" Units="twips">\
<PaperOrientation>Landscape</PaperOrientation>\
<Id>Address</Id>\
<PaperName>30252 Address</PaperName>\
<DrawCommands>\
    <RoundRectangle X="0" Y="0" Width="1581" Height="5040" Rx="270" Ry="270" />\
</DrawCommands>\
<ObjectInfo>\
    <AddressObject>\
        <Name>Address</Name>\
        <ForeColor Alpha="255" Red="0" Green="0" Blue="0" />\
        <BackColor Alpha="0" Red="255" Green="255" Blue="255" />\
        <LinkedObjectName></LinkedObjectName>\
        <Rotation>Rotation0</Rotation>\
        <IsMirrored>False</IsMirrored>\
        <IsVariable>True</IsVariable>\
        <HorizontalAlignment>Left</HorizontalAlignment>\
        <VerticalAlignment>Bottom</VerticalAlignment>\
        <TextFitMode>None</TextFitMode>\
        <UseFullFontHeight>False</UseFullFontHeight>\
        <Verticalized>False</Verticalized>\
        <StyledText />\
        <ShowBarcodeFor9DigitZipOnly>False</ShowBarcodeFor9DigitZipOnly>\
        <BarcodePosition>Suppress</BarcodePosition>\
        <LineFonts>\
            <Font Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />\
        </LineFonts>\
    </AddressObject>\
    <Bounds X="331" Y="150" Width="4470" Height="1215" />\
</ObjectInfo>\
<ObjectInfo>\
    <BarcodeObject>\
        <Name>BARCODE</Name>\
        <ForeColor Alpha="255" Red="0" Green="0" Blue="0" />\
        <BackColor Alpha="0" Red="255" Green="255" Blue="255" />\
        <LinkedObjectName></LinkedObjectName>\
        <Rotation>Rotation0</Rotation>\
        <IsMirrored>False</IsMirrored>\
        <IsVariable>False</IsVariable>\
        <Text></Text>\
        <Type>Code39</Type>\
        <Size>Medium</Size>\
        <TextPosition>None</TextPosition>\
        <TextFont Family="Arial" Size="6" Bold="False" Italic="False" Underline="False" Strikeout="False" />\
        <CheckSumFont Family="Arial" Size="6" Bold="False" Italic="False" Underline="False" Strikeout="False" />\
        <TextEmbedding>None</TextEmbedding>\
        <ECLevel>0</ECLevel>\
        <HorizontalAlignment>Center</HorizontalAlignment>\
        <QuietZonesPadding Left="0" Top="0" Right="0" Bottom="0" />\
    </BarcodeObject>\
    <Bounds X="331" Y="178" Width="4260" Height="320" />\
</ObjectInfo>\

有谁知道一个参数可以让我把条形码放在address对象下面而不是在它上面?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-28 17:54:38

你目前有:

代码语言:javascript
复制
<BarcodePosition>Suppress</BarcodePosition>

看起来你可能需要:

代码语言:javascript
复制
<BarcodePosition>BelowAddress</BarcodePosition>

-嗯,在你最后一个ObJectInfo的边界标签上改变你的Y轴怎么样?

代码语言:javascript
复制
<Bounds X="331" Y="178" Width="4260" Height="320" />\

代码语言:javascript
复制
<Bounds X="331" Y="1365" Width="4260" Height="320" />\
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43076299

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档