C
cscqx
Unregistered / Unconfirmed
GUEST, unregistred user!
ADOConn.Connected := true;
ADOQuery1.Connection := ADOConn;
ADOQuery1.Active:=false;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('select * from dept');
ADOQuery1.Active:=true;
frReport1.ShowProgress := false;
frReport1.Clear;
frReport1.LoadFromFile(server.MapPath('./') + '/'+rpFileName);
frDBDataSet1.DataSet := ADOQuery1;
frReport1.Dataset := frDBDataSet1;
frReport1.PrepareReport;//出错
frReport1.SavePreparedReport(server.MapPath('./') + '/' + repFileName);
ADOQuery1.Connection := ADOConn;
ADOQuery1.Active:=false;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('select * from dept');
ADOQuery1.Active:=true;
frReport1.ShowProgress := false;
frReport1.Clear;
frReport1.LoadFromFile(server.MapPath('./') + '/'+rpFileName);
frDBDataSet1.DataSet := ADOQuery1;
frReport1.Dataset := frDBDataSet1;
frReport1.PrepareReport;//出错
frReport1.SavePreparedReport(server.MapPath('./') + '/' + repFileName);