 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Marcio Ehrlich Guest
|
Posted: Tue Aug 22, 2006 8:12 am Post subject: Range undeclared? |
|
|
Upgrading from D5 to D7 this line is raising the "Undeclared identifier"
error:
var
RangeE: Range;
I have Excel97 and OleServer at the Uses. What is missing?
Thanks,
Marcio |
|
| Back to top |
|
 |
Chris Cheney Guest
|
Posted: Tue Aug 22, 2006 1:28 pm Post subject: Re: Range undeclared? |
|
|
"Marcio Ehrlich" <marcioehrlich_at_ig.com.br> wrote in
news:44ea8e63 (AT) newsgroups (DOT) borland.com:
| Quote: | Upgrading from D5 to D7 this line is raising the "Undeclared identifier"
error:
var
RangeE: Range;
I have Excel97 and OleServer at the Uses. What is missing?
|
From Delphi7\bin\tlbimp.sym :
;;==============================================;;
;; Map Excel CoClasses to 'better' names ;;
;;==============================================;;
[{00020813-0000-0000-C000-000000000046}:TypeNames]
Application=ExcelApplication
QueryTable=ExcelQueryTable
Chart=ExcelChart
Worksheet=ExcelWorksheet
WorkBook=ExcelWorkbook
OLEObject=ExcelOLEObject
Global=ExcelGlobal
IFont=ExcelIFont
Range=ExcelRange
So try writing
var
RangeE: ExcelRange;
HTH
--
For e-mail address, remove the XXs |
|
| Back to top |
|
 |
Marcio Ehrlich Guest
|
Posted: Tue Aug 22, 2006 4:55 pm Post subject: Re: Range undeclared? |
|
|
Seriously, how did you find that? D7's help, at the IDE, shows NOTHING about
automation, although Servers components are installed by default.
Is there any definitive documentation to guide us outside this marvelous ng?
Thanks,
Marcio
"Chris Cheney" <XXChris.CheneyXX (AT) tesco (DOT) net> escreveu na mensagem
| Quote: | From Delphi7\bin\tlibimp.sym :
;; Map Excel CoClasses to 'better' names ;; |
|
|
| Back to top |
|
 |
Oliver Townshend Guest
|
Posted: Wed Aug 23, 2006 8:12 am Post subject: Re: Range undeclared? |
|
|
| Quote: | Seriously, how did you find that? D7's help, at the IDE, shows NOTHING
about
automation, although Servers components are installed by default.
Is there any definitive documentation to guide us outside this marvelous
ng?
|
There's the VBA Help files which are incredibly useful, VBA Object
Inspector, and the imported Office tlb.pas files in the borland directories,
which you can read. The components are pretty much irrelevant.
Oliver Townshend |
|
| 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
|
|