Just use the FileStream and write the text into the stream. Something like
that:
FileStream fs;
fs = new FileStream(@"\\Server\HP5si_PCL", FileMode.Create);
string printStr = "Hello network printer";
byte[] data = System.Text.Encoding.UTF8.GetBytes(printStr);
fs.Write(data, 0, data.Length);
//Put <FF> at the end of the document
byte[] byteFF = new byte[] { FF };
fs.Write(byteFF, 0, 1);
--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com |
www.opennetcf.org
"zeeshan" wrote:
> I have seen some article about PrinterCE, but that printers are
> directly attached with Pocket PC and those Printer has support of
> Pocket PC, but I m interested to send print at my local PC Printer or
> any printer on Network.
>
> Thanks
> Zeeshan
>
>