I write a activex control to open word doc(use delphi), but when I refresh
the IE, I get the two word process,so I use the below code:
try
aa := GetActiveOleObject('Word.Application');
except
aa := CreateOleObject('Word.Application');
end;
yes, this time ,only one word process be showed, but two word window
displayed.
I use win2k and word2K.
and other program is I cannot save the same filename ,must save as other
filename,help me, thanks advance
Mike Williams [MVP] - 11 Oct 2003 07:15 GMT
> I write a activex control to open word doc(use delphi), but when I refresh
> the IE, I get the two word process,so I use the below code:
[quoted text clipped - 4 lines]
> aa := CreateOleObject('Word.Application');
> end;
A Word/Office programming NG would be more relevant to your question.
Cindy M -WordMVP- - 13 Oct 2003 07:02 GMT
Hi Charles,
Starting with Word 2000, Word opens a new window for each document you open.
There's nothing you can do to change this in Word 2000.
If you set the document you're opening to an object variable, then you can
always get back to it, no matter how many windows or documents are opened.
Avoid the use of "ActiveDocument". Example:
Dim mydoc as Word.Document
Set mydoc = wdObj.Documents.Open(szDocName)
mydoc.SaveAs szNewName
> I write a activex control to open word doc(use delphi), but when I refresh
> the IE, I get the two word process,so I use the below code:
[quoted text clipped - 8 lines]
> displayed.
> I use win2k and word2K.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)