Ask the Expert

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: