Resizing images in an RTF field
I have a form open in edit mode, and I import images into an RTF field like this:
Call Source.Import( fileType, tempDir & "" & fName )
All images come in as expected -- no problems. Here is the challenge: I need to resize images that are too big in the same way you do with the Property Box. Any ideas?
I wrote a DLL using the C++ API, but it's not working well at all.
I believe you can do this by creating an HTML file on disk that has an IMG tag with SRC= the file you want, and HEIGHT and WIDTH= the dimensions you want. Then instead of importing the image, import the HTML file that refers to the image. I haven't tried that, but I believe it should work.
This was first published in February 2005