zoukankan      html  css  js  c++  java
  • TeeChart 8.01 With Source在Delphi 7.0中的安装(转)

    转载自: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、删除DelphiBin目录下的DclTee70.bpl; 
    3、删除 WindowsSystem32(或System)目录的以下文件: 
    Tee70.bpl 
    Teedb70.bpl 
    Teeqr70.bpl 
    Teeui70.bpl

    4、删除DelphiLib目录下的以下文件(如果有的话.可以把以下文本建成一个Bat文件,在DelphiLib目录下运行即可。

    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源文件拷贝到一特定目录,如 Delphi7SourceTeeChart7;

     
    并在Tools-> Environment Options -> Library -> Library Path 中添加该路径; 
    同时添加以下路径 $(DELPHI)ProjectsBpl,否则下一步编译会有找不到“tee77.dcp”的问题!

    2 Open Project打开目录中的 Tee7D7.bpg; Project-> Build All Projects 编译所有项目,

     
    编译生成的文件在$(DELPHI)ProjectsBpl目录中。

    3 将Bpl目录中的下列文件拷贝到WindowsSystem32 (或System)目录中:

     
    Tee77.bpl 
    TeeDB77.bpl 
    TeeGL77.bpl 
    TeeImage77.bpl 
    TeeLanguage77.bpl 
    TeePro77.bpl 
    TeeQR77.bpl 
    TeeUI77.bpl

    4、将Bpl目录中的下列文件拷贝到Delphi7Bin目录中:

     
    DclTee77.bpl 
    DCLTeePro77.bpl 
    DclTGL77.bpl 
    DCLTQR77.bpl

    5、将Bpl目录中的下列文件拷贝到Delphi7Lib目录中:

     
    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 Delphi7Bin目录中以下文件: 
    DclTee77.bpl 
    DCLTeePro77.bpl 
    DclTGL77.bpl 
    DCLTQR77.bpl (如果没有安装QuickReport,可以不添加此文件) 
    和WindowsSystem32 (或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:
    --------------------------------

    WindowsSystem (WinNTSystem32) :

    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:

    WindowsSystemTeeImagexx.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 (WindowsSystem or WinNTSystem32).

    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:

    http://support.steema.com

    -------------------------------------------------------------

    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:orland c++builder6sourcecompiled,选中"Install packages into IDEs (VCL versions)"选项,然后点击BEGIN进行编译,可能会提示对原有的teechart file作备份,点确定,teerecompile.exe会自动在相应目录下生成backup_teechart文件夹,然后,等待直到编译全部完成.
    这一步,其实是对博文中介绍方法的GUI实现,而且没有出现can't find *.bpi文件的提示,[这一点 是为什么??]
    (3)编译完成,生成的文件全部在C:orlandc++builder6sourcecompileduilder6目录下,共有四个文件夹:in;include;lib;system,以及一个teeInstall.exe程序.将system目录下的文件全部拷到c: windowssystem32目录下,将compileduilder6in目录下的文件全部拷到C:orland c++builder6in目录下,完成.
    (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 包文件的源代码

  • 相关阅读:
    abap开发报表的简单过程
    有关innerHTML的知识
    MS SQL中的return&output的學習
    js获取下拉列表选中项的值和文本(select)以及获取单选按钮(radio)组的值和修改选中项[转]
    ASP.NET AJAX Control Toolkit
    VB.net下有个函数strconv可以进行简体繁体转换
    JavaScript:prototype属性使用说明
    [转]一份ASP内存的释放的实验报告
    什么是 Virtual Machine Additions(虚拟机附加安装模块)?
    Trigger&Procedure的應用
  • 原文地址:https://www.cnblogs.com/hcwp/p/3990043.html
Copyright © 2011-2022 走看看