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 

Range undeclared?

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





PostPosted: Tue Aug 22, 2006 8:12 am    Post subject: Range undeclared? Reply with 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?
Thanks,
Marcio
Back to top
Chris Cheney
Guest





PostPosted: Tue Aug 22, 2006 1:28 pm    Post subject: Re: Range undeclared? Reply with quote



"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





PostPosted: Tue Aug 22, 2006 4:55 pm    Post subject: Re: Range undeclared? Reply with 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?
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





PostPosted: Wed Aug 23, 2006 8:12 am    Post subject: Re: Range undeclared? Reply with quote

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
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.