Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

GetOutputTextExtent is getting the string size smaller than printer out in Window 7 and 2008.

$
0
0

I use GetOutputTextExtent to get the string size and make sure it fit in my report template. The font and size of the string is setup before the print.

On XP, the report prints fine with my string fits in the line.

On Windows 7 and 2008, the last word is wrapped to the beginning of the next line and overlapped with starting word.

I compared the line and found the print out in Windows 7 and 2008 is slightly larger than XP.

Is there anyway I can get a more accurate size in Windows 7 and 2008. I am developing in MFC 6.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>