Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / General MS Word Questions / October 2003

Tip: Looking for answers? Try searching our database.

activex get two word process

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
charles - 11 Oct 2003 04:50 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:

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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.