麻烦,能帮忙看看我下面的代码在fastreport VCL一直编译不过,不知哪里错了。
procedure Chart3OnBeforePrint(Sender: TfrxComponent);
var
i, k, n, x, y: integer;
sn: string;
cn: TADOConnection;
adotem: TADOQuery;
begin
cn := TADOConnection.Create(Self);
cn.ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\bn.chen\Desktop\graphic update\Win32\Debug\XMLFCTtest .mdb;Persist Security Info=False';
cn.LoginPrompt := False;
cn.Open;
adotem:= tADOQuery.Create(self);
adoTem.Connection:= cn;