System.Drawing.Graphics and escaped characters

G

Guest

I'm trying to print barcodes with a barcode font and I'm having problems with
escaped characters. I can print and scan any barcode perfectly, until there
is an escaped character in it, like /" or //. Then the barcode will not
scan. I can put a breakpoint in, copy the data from the watchlist, remove
the /'s and print the barcode in word processor just fine. I'm guessing that
Graphics.Drawstring(string) is somehow printing the '/' before the escaped
character. Unless I am doing something wrong, this has to be a bug. Any
suggestions or ideas?
 
G

Guest

I'm sorry, then. I don't know what the problem is, assuming you're using C#
(or at least not VB.NET, which doesn't use the '\' as an escape character),
the string in question is in the code file (i.e., not retrieved from a config
file or some other outside source - the '\'s wouldn't be escape characters in
that case), and the string is not marked as being literal (with an ampersand
'@').
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top