http://bbs.csdn.net/topics/380066416
var ds = db.CustomSql("select * from sales_order_detail where order_no='2012-09-04-037'").ToDataSet();
//加载模板
report1.ReportFile=@"test1.frx";
//加载数据
report1.RegisterData(ds.Tables[0], "sales_order_detail");
//这样就可以预览数据了
report1.Prepare();