BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi 2007 & Word 2000

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Apr 25, 2007 3:53 pm    Post subject: Delphi 2007 & Word 2000 Reply with quote



Does Delphi 2007 support Word 2000 anymore?

Just upgraded to Delphi 2007 and finding a problem with an existing
application which talks to Word 2000.

When trying to compile I get a message:

"[DCC Error] Templates.pas(167): E2010 Incompatible types:
'Word2000.Range' and 'WordXP.Range'"

Seems fairly straight forward. However I am not using WordXP.

Looking in the supplied units, there is a Word2000.pas in the same
location as WordXP.pas.

But how do I make Delphi use that version? It's insisting on adding
WordXP to my uses, along with the existing Word2000.pas.

In previous versions there was a choice on what version to use on
install - but I cannot see that here

Dan
Back to top
Oliver Townshend
Guest





PostPosted: Wed Apr 25, 2007 5:31 pm    Post subject: Re: Delphi 2007 & Word 2000 Reply with quote



Quote:
But how do I make Delphi use that version? It's insisting on adding
WordXP to my uses, along with the existing Word2000.pas.

You are using the Office components that were built for WordXP, not 2000.
Either stop using the components, build a set for Word 2000, or switch to
the Office XP set.

Oliver Townshend
Back to top
Craig Farrell
Guest





PostPosted: Wed Apr 25, 2007 11:25 pm    Post subject: Re: Delphi 2007 & Word 2000 Reply with quote



Hi,

Quote:

"[DCC Error] Templates.pas(167): E2010 Incompatible types:
'Word2000.Range' and 'WordXP.Range'"

But how do I make Delphi use that version? It's insisting on adding
WordXP to my uses, along with the existing Word2000.pas.

You have to go to Component | Install Packages and remove
the XP one and add the 2K one. The names of the packages,
found in ..\bin, are dclofficexp100.bpl and
dcloffice2k100.bpl. Then when you remove any *xp* uses
items from your uses list, they should stay removed.

--Craig
Back to top
Guest






PostPosted: Thu Apr 26, 2007 2:58 pm    Post subject: Re: Delphi 2007 & Word 2000 Reply with quote

On 25 Apr, 19:25, Craig Farrell <cNO_SPAM.please.farr...@insprise.com>
wrote:
Quote:
Hi,



"[DCC Error] Templates.pas(167): E2010 Incompatible types:
'Word2000.Range' and 'WordXP.Range'"

But how do I make Delphi use that version? It's insisting on adding
WordXP to my uses, along with the existing Word2000.pas.

You have to go to Component | Install Packages and remove
the XP one and add the 2K one. The names of the packages,
found in ..\bin, are dclofficexp100.bpl and
dcloffice2k100.bpl. Then when you remove any *xp* uses
items from your uses list, they should stay removed.

--Craig

Excellant - thanks very much for that

I'd managed to do a work-around by not using the actual components and
manaually creating Word2000.TWord... but that was a bit of a grind.

Wish I'd been able to find some "official" documentation of that ;-)

Dan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.