It appears that EM_FORMATRANGE might have been changed at about halfway through our working with the function.
It now formats with an extra line. By appearance it looks as if it is proper, but a printer will not fit that last line on the page.
It also seems that word wrapping has slightly changed. It used to do exactly as WordPad would do with lines and wrapping, and now both are different.
To be sure I went back to my first code, and there is a PDF on the PrintViewer thread. The oldest version does the same as newest one, and it is not what is posted on the thread.
Rick