.net - Xml Issue S’abonner

0
Avatar
Legacy Poster

Hi,

I am getting an error in windows c# application, when I try to the property SetNamedSubStringValue(string SubStringName, string Value)
the value contains a string '«RS»06«GS»'

can any one help on this issue.

thanks
Ratna

5 commentaires

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

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
Actions pour les commentaires Permalien

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
Actions pour les commentaires Permalien

Hi,

Any update/Suggestions.

Thanks
Ratna
0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

EOT = 04
0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

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$.

Vous devez vous connecter pour laisser un commentaire.