Agent to Import HTML file into a rich text field.
Posted on 2007-07-31
I use the Excell Publish feature to create an HTML file, and I want to use an agent to the import files into rich text field in a document in a Notes database. I use the term 'import' because I know I can do File Import as a user, and I can create a button for the user to press which does the 'import' process which is available as a method under notesUIDocument. But, I can't find a way to do the import as an agent which could be run in batch to update a group of documents with the appropriate HTML files. The database is published to the web and these documents are normally viewed by a browser.
I have found an approximation by using Stream and bringing the text into the field. With passthru HTML turned on the field is correct when viewed with a browser. But the HTML code is seen when the document is viewed with the Notes client. I would rather have the action of 'import'.