Home > Ask the Domino Experts > Questions & Answers > Can I simulate 'create picture' in LotusScript?
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Can I simulate 'create picture' in LotusScript?

Andre Guirard EXPERT RESPONSE FROM: Andre Guirard

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site
>
QUESTION POSED ON: 21 October 2003
In LotusScript is there a way to simulate "create picture"?

I want to add JPEG files to forms (via LotusScript) as a picture, not as an attachment.


>
LotusScript does not provide a way to insert pictures into Rich Text directly. There are a couple of options, however.
  • If you store each picture in a Rich Text field in a separate Notes document in advance, you can find the document in a view and use AppendRTItem to add the picture into another NotesRichTextItem that you're creating.

  • If using the front end is an option, you can use NotesUIDocument.Import to bring in a JPEG file into a Rich Text field of a document that's open in edit mode.

  • In Notes 6, if the file is available to users on a disk when they're using the application (e.g., in a file share), then you can use pass-thru HTML in the Notes client to display the image.

  • In a Domino Web application, you can create the files as attachments and use pass-thru HTML to display them by calculating a URL as follows: (document URL)/$FILE/filename. Use @AttachmentNames to get the filename. You will also need to use a hidden section around the Rich Text field that contains the attachments, since hide formulas don't work with Rich Text fields (each Rich Text paragraph has its own hide formula that overrides what is defined on the form).

  • You can use the Notes API or a third-party tool such as the Midas Rich Text LSX from GeniiSoft.com to create whatever Rich Text you want.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2010, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts