关于 f1book 的使用(100分)

  • 主题发起人 主题发起人 LittleSong
  • 开始时间 开始时间
L

LittleSong

Unregistered / Unconfirmed
GUEST, unregistred user!
看如下代码:
unit testf1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, AxCtrls, OleCtrls, vcf1;

type
TForm1 = class(TForm)
F1Book1: TF1Book;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
Var
i:smallint;
s:WideString;
begin
s:='c:/abc.xls';
i:=F1FileExcel4;
f1book1.read(s,i);
end;

end.

运行时出错。what!!!
 
LOOK HERE
var
S:WIDESTRING;//OR STRING
typef:smallint;
BEGIN
TYPEF DO NOT NEED HAVE A VALUE;
S:='C:/AB.XLS' //FILENAME
f1book1.Read(S,typef);
 
还是不行。
 
程序没问题,可能是XLS文件的版本太高了?
 
Formula One 6.0 does not support the Formula One 1.x or 2.x or Excel 4.x file formats. However, Formula One 2.x files and Excel 4.x files can be imported into Formula One 6.0 using the standalone Workbook Designer and then saved as Formula One 6.0 files.
Copyright ?1998, Tidestone Technologies, Inc.
 
接受答案了.
 
后退
顶部