Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

word ole

Status
Not open for further replies.

theStefan

Programmer
Jul 24, 2001
4
GB
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 ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top