How to save web page contents as a file in server

Hi,

I have one form which contains one link and one rtf field call body. On click of that link It will open the required url Like www.yahoo.com or www.google.com inside the domino form. We need to do searching the pages and search pages to be saved as a file in server.

I want to save the contents of the web page as a file in server using lotus script. Then I want to attach file in to the opened form.

Subject: How to save web page contents as a file in server

That can easily be done in LotusScript in a WebQuerySave agent.

The agent uses

notesRichTextItem.embedObject() method to attach a file to a richtext field. Once attached, the file may be removed from the file system using the Kill statement.

Create the file in the server’s temp folder, which you otain using Environ(“Temp”).

Notice that the agent signer must have “unrestricted” agent access to the server, to be alowed to access the server file system.

Refer to the Designer Help and/or this forum and the ND4-5 forum for code examples.