Dymo条形码标签打印

时间:2018-04-19 10:01:52

标签: javascript asp.net-mvc dymo

我们有一个mvc应用程序可以打印包含条形码的标签。这使用XML文件来形成条形码:

<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>True</IsVariable>\
        <Text></Text>\
        <Type>Code128Auto</Type>\
        <Size>Medium</Size>\
        <TextPosition>Bottom</TextPosition>\
        <TextFont Family="Arial" Size="12" Bold="False" Italic="False" Underline="False" Strikeout="False" />\
        <CheckSumFont Family="Arial" Size="12" 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="420" />\
</ObjectInfo>\

有一个带校验和的代码39。如何将Type设置为?

1 个答案:

答案 0 :(得分:1)

int x = 010; // base 8 => 8 in decimal int y = 011; // base 8 => 9 in decimal 要么 int value = getValueToPrint(); std::cout << std::setw(1) << std::hex << value << " " // prints value as hex << std::setw(2) << std::dec << value << " " // prints value as dec << std::setw(3) << std::bitset<3>(value) << "\n";// prints value in bin

提示:运行DYMO软件(DYMO Label v.8)并根据需要创建标签,然后保存。您可以在文本编辑器中打开标签文件以查看XML。