For Programmers: Free Programming Magazines  


Home > Archive > Clarion > March 2004 > OLE InPlaceActivate









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author OLE InPlaceActivate
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com