A
AhujaVineet
Hello,
I have struggled much in vain for the below behaviour:
I have embedded a word document in an active x control and I create an
embedded object using OleCreateFromFile() passing to it the file name on my
hard-drive.
The problem is that if a previous word instance was running then
OleCreateFromFile() uses this instance and not the instance which I created
for my automation usage.
On researching a bit I found that GetActiveObject() would always return the
first entry in ROT.I know there are ways to get down to the desired instance
by iterating through the ROT and using it.But even I have the application
pointer is there any way that OleCreate* method takes my word application
obejct and use it to open the document in-place?
Or in other words
Is there ANY way that I can direct OleCreateFromFile() to use the instance
of word which I have created?
I would appreciate any cooments,Thanks in advance.
Regards,
Jensen Guido
I have struggled much in vain for the below behaviour:
I have embedded a word document in an active x control and I create an
embedded object using OleCreateFromFile() passing to it the file name on my
hard-drive.
The problem is that if a previous word instance was running then
OleCreateFromFile() uses this instance and not the instance which I created
for my automation usage.
On researching a bit I found that GetActiveObject() would always return the
first entry in ROT.I know there are ways to get down to the desired instance
by iterating through the ROT and using it.But even I have the application
pointer is there any way that OleCreate* method takes my word application
obejct and use it to open the document in-place?
Or in other words
Is there ANY way that I can direct OleCreateFromFile() to use the instance
of word which I have created?
I would appreciate any cooments,Thanks in advance.
Regards,
Jensen Guido