 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed Apr 25, 2007 3:53 pm Post subject: Delphi 2007 & Word 2000 |
|
|
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
|
Posted: Wed Apr 25, 2007 5:31 pm Post subject: Re: Delphi 2007 & Word 2000 |
|
|
| 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
|
Posted: Wed Apr 25, 2007 11:25 pm Post subject: Re: Delphi 2007 & Word 2000 |
|
|
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
|
Posted: Thu Apr 26, 2007 2:58 pm Post subject: Re: Delphi 2007 & Word 2000 |
|
|
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 |
|
 |
|
|
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
|
|