FastReport最简单的一个C#例子

 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、效果(这属于死报表)


©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。