| Marie Atwell 2004-03-26, 11:01 pm |
| I have an OLE object embedded in my application and want to activate
Word or Excel in the object. However, I want it to be an in-place
activiation without Word's or Excel's menu and tool bars appearing, so
I have the following code:
IF Instring('EXCEL.EXE',Upper(NW1:Viewing),1,1)
?OLE{PROP:Create}='Excel.Sheet.5'
Else
?OLE{PROP:Create}='Word.Document'
End
?OLE{PROP:DoVerb}=-5 !DOVERB:InPlaceActivate
?OLE{PROP:Document}=Clip(tFileName)
?OLE{PROP:Open}=1
But the DoVerb setting is not making a difference. Regardless what I
put, i.e. -1,-2,-3,-4,-5, I always get the default settings of Word or
Excel. I've also tried placing the setting of the PROP:DoVerb before
the PROP:Create and after the PROP:Open. Nothing I do makes a
difference.
Does anyone have any idea what I'm doing wrong?
Thanks for your help,
Marie
|