Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have a strange problem that only occurs with one printer when my application prints: each individual character prints upside-down.

Everything is printed at the proper location on the paper, but each character is upside-down. If I print to other printers, including a PDF Writer installed, the output is perfectly fine, but on this one printer it isn't.

The application is written in C++ with MFC and uses a CPrintDialog to select the printer. Once selected and the device context is obtained, the map mode is set to MM_TWIPS.

As I say, the output is fine for all other printers I have tried this with. Is there some value that I should be explicitly setting that just happens to be already set by default for many printers, but not for this one?

Please help me.

Thanks in Advance.
Posted
Updated 8-Jun-11 5:01am
v2
Comments
BillW33 8-Jun-11 11:03am    
Are other programs able to print correctly to the problem printer?
daxack 9-Jun-11 8:02am    
Yes, other programs can print to the problem printer. In fact, using my program, if I print to the PDF writer, then open the resulting PDF with Acrobat Reader, it can print to the printer in question without any problems.

1 solution

maybe the printer driver has a problem with it. Try MM_TEXT or some other options...
 
Share this answer
 
Comments
daxack 11-Jun-11 9:18am    
I try to avoid blaming other code, but it appears you may be correct.

The computers in our network that this was happening on were running either Windows 2000 Professional, Windows XP, or Windows 2000 Server, and were all using the printer driver that came with the printer.

One new computer was added yesterday that had Windows 7 on it and instead of the printer-supplied driver, it was setup with the driver that came with Windows 7. It prints perfectly normal.
KarstenK 14-Jun-11 3:20am    
sorry that you dont like my way of solving problems. An easy was is to live with it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900