错误信息:Dataset “” is not exists

visiond 2005-02-18 08:55:41
我的报表在FastReport2.5中一切正常,但我升级至FastReport3.09后出现错误:Dataset "" is not exists.
我的报表用于WEB打印,数据来源是从一个客户端数据集获得,我首先动态建立一个ClientDataset,然后得利ClientDataset.LoadFromFile('data.xml')从一个XML文件中加载数据,再将ClientDataset联结到TfrxDBDataset,而报表已经设置好数据集采用TfrxDBDataset。如果我的数据不是动态加载,就正常,即使在3.09版中也正常,但动态加载时在2.5中正常,升级至3.09则出现Dataset "" is not exists.不知为什么,后面有我的测试代码,我也将测试程序放在网站上供有兴趣的朋友帮助分析,谢谢!!

My report is ok in FR2.5, but when i migration fastreport from 2.5 to 3.09,i get the follow error: Dataset "" is not exists.

In my application, all data is created dynamic, for example, i always create a clientdateset, then load data from a xml file, then link the clientdataset to TfrxDBDataset, everything is ok in FR2.5, but when i migration fastreport from 2.5 to 3.09,i get the follow error: Dataset "" is not exists.

why??

The following code is test code, i can send the test project to anybody if you wish to get or download from the url: http://www.hsnet.cn/download/Fr309Test.exe
---------------------------------------------------------------
procedure TForm1.Button1Click(Sender: TObject);
var
mast: TClientDataSet;
frmast: TfrxDBDataset;
report: TfrxReport;
begin
mast := TClientDataSet.Create(self);
mast.LoadFromFile('data.xml');
mast.Active := true;
frmast := TfrxDBDataSet.Create(self);
frmast.DataSet := mast;
report := TfrxReport.Create(self);
report.LoadFromFile('test.fr3');
report.ShowReport;
end;
...全文
550 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
cdsgajxlp 2005-02-21
  • 打赏
  • 举报
回复
up
aiirii 2005-02-21
  • 打赏
  • 举报
回复
看提示: Dataset "" is not exists.

好象你還沒設置好正确的 Dataset
visiond 2005-02-21
  • 打赏
  • 举报
回复
up
78hgdong 2005-02-18
  • 打赏
  • 举报
回复
好,学习!

2,498

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧