Zum Hauptinhalt gehen

Suche

Suche

.net - Xml Issue

Kommentare

5 Kommentare

  • Avatar
    Ian Cummings
    Moderator
    These are both control characters.

    In XML syntax you can make a numeric character reference to these in the following way:

    &#xhh; (hexadecimal)

    or

    &#dd; (decimal)

    Replace the "hh" and "dd" with the hexadecimal or decimal ASCII number for the wanted control code.

    RS = 1E (hex) or 30 (dec)

    GS = 1D (hex) or 29 (dec)
    0
  • Avatar
    Legacy Poster
    Thanks for your suggestion. I have tried both ways.

    This time I am not getting any error message, but in the label print out I am getting the control characters.

    Here is the data sent to 2D micropdf barcode variable from .net application:


    Original String: [)>«RS»06«GS»11XYZ«GS»25XYZV22555«RS»«EOT»
    out put in the label print out:[)>RS06GS11XYZGS25XYZV22555RSEOT



    as per your suggestion variable data : [)>0611XYZ25XYZV22555
    output in the label print out: [)>0611XYZ25XYZV22555

    Note: I have not included the <<EOT>> character.

    Please let me know what could be the issue.


    BTW, what is the control character for <<EOT>>

    Thanks
    Ratna
    0
  • Avatar
    Legacy Poster
    Hi,

    Any update/Suggestions.

    Thanks
    Ratna
    0
  • Avatar
    Ian Cummings
    Moderator
    EOT = 04
    0
  • Avatar
    Ian Cummings
    Moderator
    What is the exact XML you are sending? Note that while testing this you should open up BarTender manually and the select the "File>Run BTXML Script" which allows you to see right away the effect it is having on the label.

    Of course a workaround would be to use a substitution tag in the data, and then in the label document itself either use an OnProcessData VB script, or if using version 10, a search/replace transform to find these "tags" in the data source and thus replace them with the actual control code. Example substitution tags could be $EOT$, $GS$ and $RS$.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.