if OpenDialog.Execute then
  begin
    FName:=OpenDialog.GetNamePath;
    F1book1.Read(fname,?);
  end;
就是想把EXCEL文件导入到F1book1中来

解决方案 »

  1.   

    F1Book1.Read pPathName, pFileType
    Constants                    Value Description
    F1FileExcel5             4    Excel 5 and 7/95
    F1FileExcel97            11    Excel 97/Excel 8
    F1FileFormulaOne3             5    Formula One 3.x, 4.x and 5.x
    F1FileFormulaOne6             12    Formula One 6
    F1FileHTML             9    HTML (write only)
    F1FileHTMLDataOnly            10    HTML Data (write only)
    F1FileTabbedText             3    Tabbed text
    F1FileTabbedTextValuesOnly    6    Tabbed text (values only)