How to export to word in lotus notes through lotus script pls help me any one
Subject: Export To Word
Hi,
Look at the following code to copy a data from any field to Word. Also, there are many post in this forum regarding putting the data in Word.
Dim WordApp As Variant
Dim currentFilename As String
currentFilename = “D:\WordName.doc”
Call uidoc.GotoField( “Untitled” )
Call uidoc.SelectAll
Call uidoc.Copy
'CREATE A NEW FILE IN WORD APPLICATION
Set WordApp = CreateObject(“Word.application”)
WordApp.Visible = False
WordApp.Documents.Add
WordApp.Selection.Paste
WordApp.ActiveDocument.saveas currentFilename
WordApp.ActiveDocument.close
WordApp.Quit
Set WordApp = Nothing
Good luck.
Regard,
Pashvina.