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.
Re: Images in Rich Text Boxes
Put a PictureBox on the rtb, that might help
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?