I have created a print handler class to print a file, which works well. I have now tried to print a file with some funny characters (>128). I have tried passing some encoding enumerators to the constructor, but it is not making any difference. Any character > 128 is being skipped by the readline() method.
Is there another way to achieve the same thing I happy to write my own readline method and read bytes until a CrLf. Which stream reader should I use and how to I ensure I see each byte
Any help appreciated.
thanks
Gareth

System.IO.StreamReader
Galm
Thanks, I'll have a look into that.
I am working on an alternative to sending files with PCL commands to windows shared printers from a legacy app. HP seems to be getting less reliable with its PCL implementation in low-end lasers. Similar to PCL, my legacy app will encode commands such as bold on/off. My print handler intercepts these codes and manipulates the output as required. This side of it works fine.
Some of the print jobs from my legacy app have graphical characters for drawing boxes. Its these that are currently being ignores in the IO stream.
Gareth
DWS
Are you just trying to read in a file and print it out to a printer Is this for a Dot Matrix printer
I am using the RawPrinterHelper class available here http://support.microsoft.com/default.aspx scid=kb%3Ben-us%3B322090
This has a routine in it called SendFileToPrinter.
If this isn't what you need, at least it might give you some pointers.
Michael Blome - MSFT
Buggs Bunny