Hi
I try to create a WordDocument which should be save in a NotesDocument and filled by various data.
Unfortunataly I just can't print any text into the WordDocument.
That's the code I've written (in PostOpen):
If Source.IsNewDoc Then
Set rtItem=New NotesRichTextItem(Source.Document,"fdBody"
Set OLEObject =rtitem.EmbedObject(EMBED_OBJECT,"","c:\template.doc","WordObj"
Set hOLEObject=OLEObject.Activate(False)
hOLEObject.activate
' Set some Field values
hOLEObject.variables("Row1".value = "This field was changed by script"
hOLEObject.Fields.Update
' Insert some Text (DOESN'T WORK)
hOLEObject.selection.TypeText "this is my text"
' Show Application
hOLEObject.Application.Visible= True
end if
so what's wrong ?
Where can I get an Overview of which members of hOLEObject are accessible ?
I try to create a WordDocument which should be save in a NotesDocument and filled by various data.
Unfortunataly I just can't print any text into the WordDocument.
That's the code I've written (in PostOpen):
If Source.IsNewDoc Then
Set rtItem=New NotesRichTextItem(Source.Document,"fdBody"
Set OLEObject =rtitem.EmbedObject(EMBED_OBJECT,"","c:\template.doc","WordObj"
Set hOLEObject=OLEObject.Activate(False)
hOLEObject.activate
' Set some Field values
hOLEObject.variables("Row1".value = "This field was changed by script"
hOLEObject.Fields.Update
' Insert some Text (DOESN'T WORK)
hOLEObject.selection.TypeText "this is my text"
' Show Application
hOLEObject.Application.Visible= True
end if
so what's wrong ?
Where can I get an Overview of which members of hOLEObject are accessible ?