Subject: Add picture to Word via LotusScript
I suggest you record a macro in word to see what code you need.I did and got this:
Selection.InlineShapes.AddPicture FileName:= “C:\blahblah.jpg” , LinkToFile:=False, SaveWithDocument:=True
Now, that instruction won’t work very well in LotusScript, you’ll have to alter it slightly.
The Word help file says:
expression.AddPicture(FileName, LinkToFile, SaveWithDocument, Range)
expression Required. An expression that returns an InlineShapes object.
FileName Required String. The path and file name of the picture.
LinkToFile Optional Variant. True to link the picture to the file from which it was created. False to make the picture an independent copy of the file. The default value is False.
SaveWithDocument Optional Variant. True to save the linked picture with the document. The default value is False.
Range Optional Variant. The location where the picture will be placed in the text. If the range isn’t collapsed, the picture replaces the range; otherwise, the picture is inserted. If this argument is omitted, the picture is placed automatically.
So, in LotusScript you will need:
Selection.InlineShapes.AddPicture(“C:\blahblah.jpg”, False, True)
You will, of course, first need to extract the file from your RT-item to disk, but this should work.