FASTREPORT 设置数据源
using FastReport;
TfrxReport report = new TfrxReport();
TfrxADOQuery test10 = new TfrxADOQuery();
TfrxADODatabase db = new TfrxADODatabase();
db.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=True;
User ID=sa;Initial Catalog=db_showhouse;Data Source=HHH";
db.LoginPrompt = false;
db.Connected = true;
test10.Name = "i";
test10.Query = "select * from tbl_User";
report.LoadReportFromFile(AppDomain.CurrentDomain.BaseDirectory+"hhh.fr3");
report.SelectDataset(true, test10);
report.DesignReport() ;
请高手们帮帮忙:report.SelectDataset(true, test10); 这句错误,不能对报表进行设置数据源 提示第二个参数
是DATASET 如何不要这句的话可以调用报表出来,只是里面没有数据
谢谢了