如何动态创建水晶报表 [英] How to Create a crystal report dynamically

查看:120
本文介绍了如何动态创建水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 如何从datagridview数据动态创建Crystal报表.
我有一个数据库和一个datagridview,datagridview将从数据库中获取数据,并显示在datagridview中.此后,我想从datagridview数据创建一个水晶报表,但稍后我们进行一些更改时便有一个要点那么反射的数据应该出现在datagridview中,并且水晶报表应该根据更新后的数据生成.请帮助我..

解决方案

2件事:
1.根据网格布局创建和设计水晶报表很复杂-本身就是一个很好的项目
2.如果要数据驱动的Crystal报表,为什么还要依赖数据网格?

现在,
选项1 :使用报告中的数据导出表格的网格-excel,pdf,图像等:
通过以下方式将DataGridView导出到Excel/PDF/image文件:使用Reporting Services报告生成 [使用ITextSharp库将GridView导出为PDF文档 [ C#Crystal Reports逐步 [ .NET中的Crystal Reports简介 [ 解决方案

2 things:
1. It''s complex to create and design a crystal report as per grid layout - a good project in itself
2. Why have a datagrid dependancy if you want a data driven crystal report?

Now,
Option 1: Export your grid with data as is in reports - excel, pdf, image etc:
Exporting a DataGridView to an Excel/PDF/image file by using Reporting Services report generation[^]
Exporting GridView to PDF Document using ITextSharp Library[^]

Option 2: Design a crystal report as you want and then call that report whenever you want to view it (i.e. when you want to show data of gridview in report)
C# Crystal Reports step by step [^]
Introductions to Crystal Reports in .NET[^]


这篇关于如何动态创建水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆