Q
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

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close