Printing a Picturebox and a Richtextbox on the same page in VB6

In VB6, I am trying to print a picture box in the upper left corner of a page. Then I want to print the contents of a Richtext box on the same page. If I use printer.paintpicture for the picture box and rtb.selprint (printer.hdc) to print the contents of the RTB, I get error 482.  I can not use printer.print for the RTB because it will loose it's formatting. I have also tried pasting the image into a second RTB and then printing both, but they print on separate pages. Basically, I want to lay the RTB on top of the image, or the image on top of the RTB. Either way, the text has to be able to print next to the picture.

jayhutch6279Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PaulHewsCommented:
You will probably be able to mix the .paintpicture technique with this:

How to set up the RichTextBox control for WYSIWYG printing
http://support.microsoft.com/default.aspx?scid=kb;en-us;146022

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PaulHewsCommented:
Note that you are more interested in the PrintRTF function at that page rather than the WYSIWYG appearance on the form.
AzraSoundCommented:
If you're already using the PrintRTF function from above, thats a good place to add any additional print routines.  Or, you could try pasting or embedding the picture into the RTF document itself and just printing it.
jayhutch6279Author Commented:
Thanks for the help. The PrintRTF was a good place to start for what I needed.
PaulHewsCommented:
Glad to hear it.  :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.