OleCreateFromFile

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
 
C

Cindy Meister

Hi

I can, perhaps, understand that someone may not understand what the topic
title of this group - Application Error - means. But on reading any of the
messages here, it should be clear that the one thing it's NOT for is
developer questions. There's an entire set of Office.Developer newsgroups,
and there you might even stand a chance of getting a reply...

-- Cindy
 
A

AhujaVineet

Excuse me,Didnt realize that.
I have posted it now in the right group.
Thanks,
Guido
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top