FormatRange & Background

  • Thread starter Thread starter Kevin Cochran
  • Start date Start date
K

Kevin Cochran

Greetings,

I have a program where I allow the user to change the window background
color on a RichTextBox. To print, I use the FormatRange function provided by
microsoft at http://msdn.microsoft.com/en-us/library/ms996492.aspx.

The problem is that when I use the FormatRange, it prints that background
color. If I clear the background color, it still prints that same previous
color. In fact, if I open WordPad and print something, it does the exact same
thing there! I even have my program copying the RTF to a new RichTextBoxEx,
changing all colors to black and white before it prints, and it still gives
the same problem.

Everything shows up as expected on the screen in each case. Is there some
cache for a RichTextBox that I'm missing? I'm using FormatRangeDone().

Any ideas?

Thanks,
Kevin
 
Back
Top