f1book.write('c:\temp.tmp',0)提示无效的参数。
请问正确的参数应怎么写?

解决方案 »

  1.   

    没用过f1book,不过可以帮你找找资料
      

  2.   

    语法:
     F1Book1.Write pPathName, nSaveTypepPathName :文件的路径和文件名称
    nSaveType Index 存储类型索引常量
    F1FileFormulaOne Formula One format
    F1FileExcel4 Excel 4.0 format
    F1FileTabbedText Tab-delimited text file
    F1FileExcel5 Excel 5.0 format
    F1FileFormulaOne3 Formula One v.3 format
       F1FileTabbedTextValuesOnly Tab-delimited text file values only
    例如:
    procedure TForm1.Button1Click(Sender: TObject);
    begin
      f1book1.Write('c:\ddd.xls',F1FileExcel5);end;
    windows server2000 delphi7.0 调试通过