468,140 Members | 1,437 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

Printing to a Dot Matrix printer using C# .NET

Hello,

I am trying to print a System.Drawing.Printing.PrintDocument to a dot matrix printer using C# .NET. I have created an instance of the PrintDocument and create a event handler for the PrintPage property of the PrintDocument.

PrintDocument document = new PrintDocument();
document.PrintPage += new PrintPageEventHandler(pd_PrintInvoicePage);
document.Print();

However, when I try to print to the dot matrix printer the printer carriage moves alittle bit, but nothing is printing. If I open up a word document and and type some random text the dot matrix printer prints, but will not successfully print the PrintDocument that I have created. I created a little class that sends raw data to the printer and the printer prints properly, however it will not print the PrintDocument. Any suggestions as to how to correct my problem? Thanks.

Anthony
Aug 25 '07 #1
1 4701
kenobewan
4,871 Expert 4TB
Please search the site first. There have been other threads that may help. Thanks.
Aug 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Mario | last post: by
2 posts views Thread by Marc Champagne | last post: by
2 posts views Thread by Ryan Gregg | last post: by
7 posts views Thread by DazedAndConfused | last post: by
3 posts views Thread by Rich Kayton | last post: by
3 posts views Thread by Adam Right | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.