Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

It is possible to resize of a picture into a RichText Field with LS ?

Status
Not open for further replies.

bogtom

Programmer
Jun 11, 2001
31
US
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 and this is a response for the web !

Isn't any method to modify programaticaly the apperance size of a picture from a Rich Text field ?
 
I don't have the capablities of creating/testing web-pages for my LN databases, but here's a guess.

I know that in the body of your forms, you can place HTML tags. Have you tried sticking HTML tags into your richtext field, before and after the image, and see if that will change it?

With HTML, there are tags for setting width and height. The HTML would look like this...
<img src=&quot;picture.jpg&quot; width=237 height=329>
But, I'm not sure how you'd set that up in your RTF field. Perhaps there are some properties of the NotesEmbeddedObject that you can change?

I know this probably wasn't very useful, but it might be a start...

-MoGryph
[8O)
 
the hint that you wrote is available just for web usage ! it is simple to use the function zoom of the document ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top