Results 1 to 3 of 3

Thread: Images in Rich Text Boxes

  1. #1

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    Images in Rich Text Boxes

    In a program I'm planning to generate reports which I'll display using the rich text box. Besides rich text, i want to put images into the rtb. I've looked up how to put images into rtbs and the only way that i can find seems to be by pasting them from the clipboard. This method works well with setting bitmaps to the clipboard but i run into a problem when i try to set a metafile to the clipboard (the report contains plots and metafiles are perfect for that kind of thing). So if there could be another way of inserting a metafile into a rtb or maybe a way to write a rtf file with a metafile in it, that would be great.
    Hooked for good.

  2. #2
    New Member
    Join Date
    May 2012
    Posts
    1

    Re: Images in Rich Text Boxes

    Put a PictureBox on the rtb, that might help

  3. #3

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    Re: Images in Rich Text Boxes

    Well i guess since rtbs aren't the most compatible with metafiles I'll have to use bitmaps instead. One reason why I was wanting to use metafiles is because their file size is very small. When I simply use the .Save method of the rich text box it creates very large files (which contain images) so I assume that it's saving in the .bmp format. How do you save rtf files whose images are in a smaller format like .gif?
    Hooked for good.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width