Dymo JavaScript 打印条码位置

Dymo JavaScript printing of barcode location

我有一个应用程序可以在 Dymo 打印机上打印条形码。没问题。我按照说明创建了一个 XML 文件来打印参数。我能弄清楚的是如何将条形码标签放在文本下方。我到处都找遍了,找不到任何东西。这是我的 XML:

 '<?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>\

'

有谁知道允许我将条形码放在地址对象下方而不是上方的参数吗?

您目前拥有:

<BarcodePosition>Suppress</BarcodePosition>

您可能需要:

<BarcodePosition>BelowAddress</BarcodePosition>

--嗯,在最终 ObJectInfo 的 Bounds 标签中更改 Y 轴如何?

<Bounds X="331" Y="178" Width="4260" Height="320" />\

<Bounds X="331" Y="1365" Width="4260" Height="320" />\