System.Drawing.Graphics and escaped characters

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
'@').
 
Back
Top