We are currently developing a .net application for accounting. We are using an epson dfx-9000 dot matrix printer to do our printing for us. The printer is currently set to 6 lines to the inch, and if you do a self test print, it works. For some reason, when we use the driver from a windows 7 computer, all of our text that we send to the printer from the .net prints 7 lines to the inch. We have attempted to print both with and without the spooler, but no luck. Might this be a problem caused by windows or the .net framework which automatically formats the text?
Thomas,
Thomas
Loading
Sam HobbsPosted Dec 2, 2010, 6:01 PM
Correct? Did you write the code? If so, then do you know why you did that? If not, can you consult with the author?
I apologize that I don't know the details of what size would result from that Font constructor, but it determines the size of the font.
ThomasPosted Dec 1, 2010, 4:13 PM
Guest UserPosted Dec 1, 2010, 4:11 PM
Try setting the paper size and other settings explicitly in your code. The default values of the various PrintDocument properties may not match the settings in the printer driver properties. If you do that and still encounter the same issue, then you've (at the very least) eliminated the PrintDocument properties as the source of the problem.
Suthish NairPosted Dec 1, 2010, 4:10 PM
ThomasPosted Dec 1, 2010, 3:54 PM
2. We are not setting these things within the code, but instead are simply using the printer settings in the driver to change the paper size.
I have posted the code that we have created that uses the print document class. I hope it makes sense.
Guest UserPosted Dec 1, 2010, 3:45 PM
http://stackoverflow.com/questions/2286839/reverse-line-feed-or-another-solution-for-continuous-feed-out-of-sync-matrix
Guest UserPosted Dec 1, 2010, 3:39 PM
1) Which version of .Net are you using?
2) Are you setting the paper size and other print/page settings in code? Do those settings match those in the printer driver properties?
Suthish NairPosted Dec 1, 2010, 3:32 PM
ThomasPosted Dec 1, 2010, 3:26 PM
Suthish NairPosted Dec 1, 2010, 3:10 PM
Welcome to C# Corner.
Please check section Our recommended articles.
Still problems exists, please attach your code.