本帖最后由 cowbobe 于 2014-11-13 16:11:52 编辑

解决方案 »

  1.   

    Delphi的自身控件,对于Office读写,不仅慢,过于繁锁。提供使用第三方控件。
      

  2.   

    我从在compent里导入了一个library,名为Word_TLB.pas
    但这个库文件里面,有个// Interface: Break和DELPHI本身的Break重复了,怎么办?要怎么改呢?
    // Flags:     (4544) Dual NonExtensible OleAutomation Dispatchable
    // GUID:      {79635BF1-BD1D-4B3F-A520-C1106F1AAAD8}
    // *********************************************************************//
      Break = interface(IDispatch)
        ['{79635BF1-BD1D-4B3F-A520-C1106F1AAAD8}']
        function Get_Application: WordApplication; safecall;
        function Get_Creator: Integer; safecall;
        function Get_Parent: IDispatch; safecall;
        function Get_Range: WordRange; safecall;
        function Get_PageIndex: Integer; safecall;
        property Application: WordApplication read Get_Application;
        property Creator: Integer read Get_Creator;
        property Parent: IDispatch read Get_Parent;
        property Range: WordRange read Get_Range;
        property PageIndex: Integer read Get_PageIndex;
      end;