For a requirement I was looking for exporting Lotus Notes documents to Microsoft Word. I found some help
here and
here. The former one uses
Word.Application while the latter does something with user32.dll. But I was looking for something which was not dependent on external software. Then I came across
@Command([FileExport]). A little help from the
discussion here, I was able to devise a simple solution to it.
Lets say, you have a form
fUserProfile that you want to export to a Word file. First create a copy of that form and name it, say,
fUserProfile_Export. In
PostOpen event of the
fUserProfile_Export form enter the following formula.
@Command([FileExport]; "Microsoft RTF"; @GetProfileField("fProfileExportPath"; "FilePath"; @Name([Canonicalize]; @UserName)))