轉載自:http://www.360doc.com/content/10/1012/22/3572432_60499559.shtml
TeeChart.v8.01安裝日志.
為了安裝teechart,可謂是煞費苦心,昨晚弄到深夜一點過,今天又弄了兩個多小時.特將安裝日志記錄如下:
一、TeeChart Introduction:
TeeChart Pro是一個強大的VCL圖表組件,支持上百種2D和3D圖表風格,並提供40多個數學和統計函數、無限制的軸和22個調色板。TeeChart還集成打印預覽,圖表可導出到JPEG,EPS,PDF,PNG,PCX,GIF,Bitmap和metafile文件。同時還可提供.NET,ActiveX和 COM版本。
TeeChart還包括一個強大的、完整的編輯對話框,幾乎可用於每個組件和子組件,允許你快速的設計復雜圖表應用程序。圖表編輯器通過TeeCommander組件進一步得到增強,它提供一次點擊訪問圖表編輯器和共同特征。這些編輯器在設計時和運行時均可提供。
TeeChart Pro為縮減可執行程序大小被分成完全面向對象的多個模塊。它還允許開發者創建自定義包組成他們自己需要的模塊。
支持Delphi和C++ Builder的所有版本(包括BDS2006和CRS2007)。
[other vertion:teeChart 是生成圖表的 ActiveX 控件。]
二、download URL
http://www.ccrun.com/view.asp?id=143#
三、Installation
以下是來自BAIDU的一篇博文,有介紹teechart7及以前版本的安裝方法,原文附上:
///////////////////////////////
TeeChart 7.0 With Source在Delphi 7.0中的安裝
一、刪除Delphi7自帶TeeChart
1、Component -> install Packages 中 Remove 所有以Tee開頭的包,OK,關閉Delphi7。
2、刪除Delphi\Bin目錄下的DclTee70.bpl;
3、刪除 \Windows\System32(或System)目錄的以下文件:
Tee70.bpl
Teedb70.bpl
Teeqr70.bpl
Teeui70.bpl
4、刪除Delphi\Lib目錄下的以下文件(如果有的話.可以把以下文本建成一個Bat文件,在Delphi\Lib目錄下運行即可。
del QRTEE.dcu
del dcltee.dcp
del tee.dcp
del TeeAbout.dcu
del TeeAbout.dfm
del teebmps.res
del TeeConst.dcu
del teedb.dcp
del TeeFunci.dcu
del TeeGally.dcu
del TeeGally.dfm
del TeeLisB.dcu
del TeEngine.dcu
del TeePoEdi.dcu
del TeePoEdi.dfm
del TeePrevi.dcu
del TeePrevi.dfm
del TeeProcs.dcu
del teeqr.dcp
del teeresou.res
del TeeShape.dcu
del teeui.dcp
del TeExport.dcu
del TeExport.dfm
del TeCanvas.dcu
del Chart.dcu
del ArrowCha.dcu
del BubbleCh.dcu
del EditChar.dcu
del GanttCh.dcu
del Series.dcu
二、安裝TeeChart Pro v7.0 Full Sources
1 啟動Delphi,將TeeChart v7.0源文件拷貝到一特定目錄,如 \Delphi7\Source\TeeChart7;
並在Tools-> Environment Options -> Library -> Library Path 中添加該路徑;
同時添加以下路徑 $(DELPHI)\Projects\Bpl,否則下一步編譯會有找不到“tee77.dcp”的問題!
2 Open Project打開目錄中的 Tee7D7.bpg; Project-> Build All Projects 編譯所有項目,
編譯生成的文件在$(DELPHI)\Projects\Bpl目錄中。
3 將Bpl目錄中的下列文件拷貝到\Windows\System32 (或System)目錄中:
Tee77.bpl
TeeDB77.bpl
TeeGL77.bpl
TeeImage77.bpl
TeeLanguage77.bpl
TeePro77.bpl
TeeQR77.bpl
TeeUI77.bpl
4、將Bpl目錄中的下列文件拷貝到\Delphi7\Bin目錄中:
DclTee77.bpl
DCLTeePro77.bpl
DclTGL77.bpl
DCLTQR77.bpl
5、將Bpl目錄中的下列文件拷貝到\Delphi7\Lib目錄中:
DclTee77.dcp
DCLTeePro77.dcp
DclTGL77.dcp
DCLTQR77.dcp
Tee77.dcp
TeeDB77.dcp
TeeGL77.dcp
TeeImage77.dcp
TeeLanguage77.dcp
TeePro77.dcp
TeeQR77.dcp
TeeUI77.dcp
6、安裝TeeChart:
Component -> install Packages 中 Add \Delphi7\Bin目錄中以下文件:
DclTee77.bpl
DCLTeePro77.bpl
DclTGL77.bpl
DCLTQR77.bpl (如果沒有安裝QuickReport,可以不添加此文件)
和\Windows\System32 (或System)目錄中的TeeImage77.bpl;
7、選擇簡體中文:
新建一工程,添加Additional面板中的TChart放到Form上,選中Chart1, 鼠標右擊,
選擇Options,在Langague框中再選Chinese Simp,OK。
[URL:http://hi.baidu.com/choineo/blog/category/Delphi]
/////////////////////////////
我使用的版本為8.01,起初也是按照上面的方法試了,但在編譯bpl包庫時出現can't find *.bpi文件的錯誤,提示找不到導入包文件。多次嘗試未能解決。
再次查看下載的文件,原來里邊有個install.txt,我恍然大悟,其內容如下:
//BEGIN//
Please follow the installation guidelines found
at Kylix.txt file.
Borland Developer Studio 2006,
Delphi 2005.NET and Delphi 8 for .NET:
--------------------------------------
Open the Steema.TeeChart.VCL project group:
Steema.TeeChart.VCL.bdsgroup
and build all projects.
.NET Destination of runtime packages:
-------------------------------------
You might optionally want to install TeeChart
for VCL.Net assemblies (packages) into
.NET Framework "GAC" (Global Assembly Cache):
gacutil /i Steema.TeeChart.VCL.dll
gacutil /i Steema.TeeChart.VCL.Languages.dll
gacutil /i Steema.TeeChart.VCL.Design.dll
.NET Installation:
------------------
Under Delphi .NET, go to Component->Installed .NET Components
and browse and select the Steema.TeeChart.VCL.Design.dll
assembly (design-time package for VCL Forms applications).
Delphi / C++ Builder:
---------------------
In Delphi and C++ Builder you can recompile the
TeeChart Pro packages opening the
appropiate Project Group File (*.bpg)
BDS 2006: Tee8D10.bpg
Delphi 2005: Tee8D9.bpg
Delphi 7: Tee8D7.bpg
Delphi 6: Tee8D6.bpg
Delphi 5: Tee8D5.bpg
Delphi 4: Tee8D4.bpg
C++ Builder 6: Tee8BCB6.bpg
C++ Builder 5: Tee8BCB5.bpg
C++ Builder 4: Tee8BCB4.bpg
Double-click the first package ( ie: Tee89 ) and select
"Project -> Build All packages" to recompile all packages.
Please remove old package files and close all projects
before recompiling.
Destination of runtime packages:
--------------------------------
\Windows\System (\WinNT\System32) :
Teexx.bpl
TeeDBxx.bpl
TeeUIxx.bpl
TeeGLxx.bpl
TeeQRxx.bpl
TeeProxx.bpl
TeeImagexx.bpl
TeeLanguagexx.bpl
Installation of packages:
--------------------------
Under Delphi / C++ Builder IDE, select
Component->Install Packages.
Make sure older TeeChart packages are
removed from the package list.
Select and Add the following design-time
packages:
For BDS 2006 and Delphi 2005:
DclTeeProxx.bpl
For all other Delphi and C++Builder versions:
DCLTeexx.bpl
DCLTQRxx.bpl
DCLTeeProxx.bpl
DCLTGLxx.bpl
and:
\Windows\System\TeeImagexx.bpl
Installation errors:
---------------------
Problems when installing packages in Delphi
/ C++ Builder arise when old or duplicate
*.bpl (*.dpl) files are still located in the
system path (\Windows\System or \WinNT\System32).
Other causes are:
-Improper modification of source code.
-Old or duplicate *.DCP or *.DCU or *.OBJ files.
Modifications:
--------------
If you modify TeeChart Pro source code or fix a bug,
you can email us this info so we can apply the same
changes for next coming upgrades if they can benefit to
other programmers.
Support:
--------
Please direct your questions to our Support Central Web Site:
-------------------------------------------------------------
Thanks for TeeCharting !
Steema Software
www.steema.com
//END//
具體方法:
(1)執行上面那篇博文中介紹的方法的第一步[URL:http://hi.baidu.com/choineo/blog/category/Delphi ],刪除掉BCB中支持的舊版本的teechart file.
(2)運行teechart文件夾里的teerecompile.exe,設置編譯文件存放的目標路徑,如:C:\borland \c++builder6\source\compiled,選中"Install packages into IDEs (VCL versions)"選項,然后點擊BEGIN進行編譯,可能會提示對原有的teechart file作備份,點確定,teerecompile.exe會自動在相應目錄下生成backup_teechart文件夾,然后,等待直到編譯全部完成.
這一步,其實是對博文中介紹方法的GUI實現,而且沒有出現can't find *.bpi文件的提示,[這一點 是為什么??]
(3)編譯完成,生成的文件全部在C:\borland\c++builder6\source\compiled\builder6目錄下,共有四個文件夾:\bin;\include;\lib;\system,以及一個teeInstall.exe程序.將system目錄下的文件全部拷到c: \windows\system32目錄下,將compiled\builder6\bin目錄下的文件全部拷到C:\borland \c++builder6\bin目錄下,完成.
(4)啟動BCB,查看installed packages,可以看到teeChart已成功安裝,在控件工具欄上也出現了teechart控件.
[注:我使用的是BCB6,如果直接編譯,在第二步選文件的時候,注意選中相應的包庫文件(bpg文件),bpg文件的命名規則前面我已列出.]
另外,附上BCB中的文件類型(可能不全):
.dcp(Delphi Compiled Packages
.BPL - Borland Package Library , 是一種特殊的DLL文件, 用於代碼重用和減少可執行文件的長度
BPK - Borland Package
BPI - Borland Package Import Library(BPL's Import Library)
DPR: Delphi Project文件,包含了Pascal代碼。
PAS: Pascal文件,Pascal單元的源代碼,可以是與窗體有關的單元或是獨立的單元。
DFM:Delphi Form File,描述窗體或數據模塊及其組件屬性的二進制文件。
BPG Borland Project Group 工程項目包, 多個工程文件DPR的集合.
DSK Desktop Setting File 保存工程文件的桌面擺布情況, 下次打開時可以恢復上次保存的桌面狀態
DSM 集成開發環境IDE的臨時保存文件, 有時IDE總出錯, 可以將這個文件刪掉, 系統會重新生成
RES Resource File, Windows 的資源文件, 可以定義光標, 位圖, 圖標資源, 可以使用ImageEditor編輯
DCU Delphi Compiled Unit 編譯后的單元文件, 程序連接時需要它,
DLL Dymanic-link libraries, Windows 動態鏈接庫
EXE Executable File, 編譯生成的可執行文件
DPK Delphi Packge Source 包文件的源代碼