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 last published in February 2005

Dig Deeper on Web Development for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.



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:




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...