FormatRange & Background

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top