@Function to export a document

I need to find an @function that programmatically does the same action as a document export. Does such an @function exists? I also need to find a function or method can find a link in the html source code that comes in a message. When I try to just go through the notesrichtextitem and pull out the body of the message, it doesn’t show the links.

Subject: @Command([FileExport])

Re your second question, here is a response from the guru in these matters http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/45de0cfe8617f77e8525714e006663b1?OpenDocument