Problem solve Get help with specific problems with your technologies, process and projects.

Programmatically modify picture size from Rich Text field

I have a picture into clipboard and I put it into a document through the next code:

Dim w As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = w.CurrentDocument
Call uidoc.GotoField( "Body" )
Call uidoc.Paste

The Body field is Rich Text, and if the picture is 1024x 768, that will be very large for viewing! I want to resize it (for example decrease with 50 %) ! I found just http://www.notes.net/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/a0b41493449d6a0f85256b0200143bde?OpenDocument and this is a response for the Web ! Isn't there any method to modify programmatically the appearance size of a picture from a Rich Text field?

I don't know of a way to do this. You might try to implement the FitToWindow method of NotesEmbeddedObject (which would imply that you must first get a handle to a NotesEmbeddedObject). Even if that works, it won't give you the flexibility that you desire like skewing or stretching by a defined factor.

Dig Deeper on Domino Resources - Part 4



  • 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 ...