Thank you for your response, I looked at C++ Builder 6 Developer's guide I did not see any documentation for TExcelApplication TExcelWorkBook TExcelWorksheet.
Can you suggest what I should be looking for.
Thanks you
Main Topics
Browse All TopicsI am trying to read an Excel file, I was provided the following code but I can not make it compile. Can you provide name of book(s) that explain how to use these components. I have placed the compiler error messages that I get at the end.
WideString fname = "c:\\test.xls";
WideString sname = "Hello World";
RangePtr r;
Excel->Connect();
Book->ConnectTo(Excel->Wor
Sheet->ConnectTo(Book->Wor
Excel->Set_Visible(0, True);
Sheet->Set_Name(sname);
r = Sheet->Cells->SpecialCells
long x = r->Column;
long y = r->Row;
r->set_Formula("=sum(a1:b3
long v = r->get_Value();
Sheet->Cells->set__Default
r = Sheet->Cells->get_Range_("
FontPtr f = r->get_Font();
r->set_Formula("=rand()");
r = r = Sheet->Cells->SpecialCells
y = r->Row;
Sheet->Cells->set__Default
Sheet->Cells->Calculate();
f->set_Color(clRed);
Complier Error Messages
[C++ Error] Unit1.cpp(21): E2285 Could not find a match for 'Sheets::get_Item(int)'
[C++ Error] Unit1.cpp(23): E2316 'Set_Visible' is not a member of 'TExcelApplication'
[C++ Error] Unit1.cpp(24): E2316 'Set_Name' is not a member of 'TExcelWorksheet'
[C++ Error] Unit1.cpp(28): E2034 Cannot convert 'char *' to 'tagVARIANT'
[C++ Error] Unit1.cpp(28): E2342 Type mismatch in parameter 'Param1' (wanted 'tagVARIANT', got 'char *')
[C++ Error] Unit1.cpp(29): E2034 Cannot convert 'tagVARIANT' to 'long'
[C++ Error] Unit1.cpp(30): E2034 Cannot convert 'long' to 'tagVARIANT'
[C++ Error] Unit1.cpp(30): E2342 Type mismatch in parameter 'RowIndex' (wanted 'tagVARIANT', got 'long')
[C++ Error] Unit1.cpp(30): E2034 Cannot convert 'int' to 'tagVARIANT'
[C++ Error] Unit1.cpp(30): E2342 Type mismatch in parameter 'ColumnIndex' (wanted 'tagVARIANT', got 'int')
[C++ Error] Unit1.cpp(30): E2034 Cannot convert 'long' to 'tagVARIANT'
[C++ Error] Unit1.cpp(30): E2342 Type mismatch in parameter 'Param3' (wanted 'tagVARIANT', got 'long')
[C++ Error] Unit1.cpp(31): E2034 Cannot convert 'char *' to 'tagVARIANT'
[C++ Error] Unit1.cpp(31): E2342 Type mismatch in parameter 'Cell1' (wanted 'tagVARIANT', got 'char *')
[C++ Error] Unit1.cpp(31): E2034 Cannot convert 'char *' to 'tagVARIANT'
[C++ Error] Unit1.cpp(31): E2342 Type mismatch in parameter 'Cell2' (wanted 'tagVARIANT', got 'char *')
[C++ Error] Unit1.cpp(33): E2034 Cannot convert 'char *' to 'tagVARIANT'
[C++ Error] Unit1.cpp(33): E2342 Type mismatch in parameter 'Param1' (wanted 'tagVARIANT', got 'char *')
[C++ Error] Unit1.cpp(36): E2034 Cannot convert 'long' to 'tagVARIANT'
[C++ Error] Unit1.cpp(36): E2342 Type mismatch in parameter 'RowIndex' (wanted 'tagVARIANT', got 'long')
[C++ Error] Unit1.cpp(36): E2034 Cannot convert 'int' to 'tagVARIANT'
[C++ Error] Unit1.cpp(36): E2342 Type mismatch in parameter 'ColumnIndex' (wanted 'tagVARIANT', got 'int')
[C++ Error] Unit1.cpp(36): E2034 Cannot convert 'char *' to 'tagVARIANT'
[C++ Error] Unit1.cpp(36): E2342 Type mismatch in parameter 'Param3' (wanted 'tagVARIANT', got 'char *')
[C++ Error] Unit1.cpp(38): E2034 Cannot convert 'const TColor' to 'tagVARIANT'
[C++ Error] Unit1.cpp(38): E2228 Too many error or warning messages
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry you are right.
C++Builder5 Developer's guide have examples.
Also C++Builder 4 unleashed.
Check out for examples at borland's community site. Maybe there are some.
http://community.borland.c
gtokas.
Business Accounts
Answer for Membership
by: gtokasPosted on 2004-09-24 at 03:45:00ID: 12141492
Hello there,
Some books you will find usefull info are:
C++Builder 4 Unleashed.
C++ Builder 5 Developer's guide
C++ Builder 6 Developer's guide
gtokas.