c#新建一个winform,加个按钮监听,去调用FastReport已经做好的test.frx模板,非常简单。
1、新建项目
2、引用FastReport 3个dll文件
3、写好sql语句,去FastReport中去创建frx模板
、
4、直接在按钮监听里加上就行
//调用死报表就4句代码
// create report instance
Report report = new Report();
// load the existing report
report.Load(@"..\..\test.frx");
// run the report
report.Show();
// free resources used by report
report.Dispose();
5、效果(这属于死报表)