That’s the problem I’m trying to solve … Can anyone point me to some example code?
TIA,
Mark.
That’s the problem I’m trying to solve … Can anyone point me to some example code?
TIA,
Mark.
Subject: Pick up a jpg file off disk and paste as image inside table cell
Another possibility that you can try, if you are working in the Windows world
Embed a Microsoft Web Browser control in the cell that you want the image to appear in, and set the height and width to the attributes of the image that you want to load.
In the PostOpen event of the form, write HTML code to the web browser control to pick up the file that you want displayed e.g.
Set ie = Source.GetObject( “Microsoft Web Browser” )
ie.Navigate “about:blank”
ie.document.write ||
ie.document.write ||
Subject: Pick up a jpg file off disk and paste as image inside table cell
You can do it with DXL classes. Or maybe there are also some 3rd part tools.
I’ve done it in with DXL by:
Encode JPEG file to Base64 data format.
Export target document to DXL.
In the exported DXL locate the place where to place the picture.
Put Base64 data in found location and if necessary add additional DXL tags
Import the resulting DXL back to Notes, replacing the original document.
Here is a somewhat related example I created long ago: Andrei's Blog about Lotus Domino and other things: Export inline Notes pictures to disk as GIF files
I am currently developing a DXL LotusScript library which makes it possible to move attachments between documents and attach/detach inline images plus do some other things. It’s not really ready to be released but you can get a copy if you contribute to the code development ![]()
Contact e-mail is in my blog(see above) profile.
/Andrei
Sametime goes AJAX: Botstation - Sametime Widget Overview
Subject: Either follow the DXL track or perhaps use a third-party tool such as II2LN
Andrei mention a way to do this with DXL, and that is very doable - however perhaps somewhat difficult or cumbersome. It depends on your mileage in LotusScript.
I have a created a series of 6 articles on how I use DXL, Base64 encoding and all that stuff to inject images within table cells. You can use this article as a starting point. But believe me, you can use DXL to work with images in a very powerful way.
Another option could perhaps be to use a tool such as Import Image 2 Lotus Notes (II2LN), which simplifies the task of importing images into Notes. If you want to import files from your file system, II2LN can import almost any kind of image. You can also use advanced techniques such as replacing a variable within a tablecell with a scaled image. If you really want to paste images, you can do that too with II2LN. It let you grab images placed on the clipboard and process them within II2LN. Head over to the online manual for a deeper look.
Sincerely, Bob,
Proud Programmer and author of II2LN