Font selection and Character encoding with ZC300 using xml template design

P Pedro Gonzalo 1 year 4 months ago
170 0 0

We are developing a .NET application to print and encode cards using Link-OS SDK with ZC300 printer.

We have an xml template like the following:

<?xml version="1.0" encoding="iso-8859-1"?>
<template name="ImqCardTemplate" card_type="2" card_thickness="30" delete="no">
    <fonts>
        <font id="1" name="Arial" size="18" bold="yes" italic="no" underline="no"/>
        <font id="2" name="Arial" size="10" bold="no" italic="no" underline="no"/>
    </fonts>
<sides>
    <side name="front" orientation="landscape" rotation="180" k_mode="text">
        <print_types>
            <print_type type="monochrome">
                <text field="emb1" font_id="1" x="70 y="350 width="0" height="0 angle="0"/>
                <text field="emb2" font_id="2" x="70 y="450 width="0" height="0 angle="0"/>
                <text field="emb3" font_id="2" x="70 y="500 width="0" height="0 angle="0"/>
                <text field="emb4" font_id="2" x="70 y="550 width="0" height="0 angle="0"/>
            </print_type>
        </print_types>
        <magdata format="iso" coercivity="high" verify="yes">
            <track field="track1" number="1" format="ascii"/>
            <track field="track2" number="2" format="ascii"/>
            <track field="track3" number="3" format="ascii"/>
        </magdata>
    </side>
</sides>
</template>

When printing, Spanish special characters (accented vowels and ñ) are not correctly printed. 

Is there any way to change character code page when printing (as there when using ZPL) using a XML template? How do we have to deal with this charactes? We've tried changing font name but we do not know then complete font list and names (default printer fonts) and we would to avoid uploading new fonts to the printer.

Thanks in advance por any possible help.

 

CONTACT
Can’t find what you’re looking for?