【原创】基于WinForm的水晶报表开发

           本项目采用的是VS2019 Community + CRforVS13SP29开发,记录了开发过程中对于水晶报表设计的理解,给自己做个笔记,也给他人一些解决思路,如有说得不对的欢迎指正,好的,下面我们将采用开发步骤的形式展开:

1. 先用拉模式设计好报表模板,这样比较容易快速创建模板而无需编写太多代码。先新建winfrom项目,并从项目模板里创建一个DataSet。

2. 通过菜单"视图"/“服务器资源管理器”/“数据连接”来载入数据库,并将需要用到的表直接拖动到DataSet.xsd窗口中,这样以来就直接建立了一个具有Table结构的DataSet,后面就可以直接通过代码给Table中填充数据,而无需用代码建表。

       另外,为了便于实现动态图片功能,当被载入的数据库表字段里有二进制字段(Access里叫做OLE类型,SqlServer里叫BLOB类型),后续将该字段加入“数据库专家”后,在“字段资源管理器”里直接将该字段拉到报表里,会被报表识别为一个正方形方框(当做动态图片用时,可以视作一个图片控件),那么后续我们用代码给这个字段里写入图片二进制流,就可以方便得实现报

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
6-1 Create rich reports within the familiarity of your Visual Studio development environment – for free Hit your report development deadlines and come in under budget without leaving Microsoft Visual Studio. Our report design software installs directly into Visual Studio. With this fully functional – and free software, you'll spend less and save time developing rich, interactive reports. Save time using powerful report creation, integration, and delivery tools Deliver interactive, graphical reports on any device through an XML Web services model Distribute highly formatted reports in rich-client Windows environments Enjoy flexible data access with support for over 35 data sources, major browsers and operating systems Extend your application with seamless report integration into WPF applications Seamless upgrade to SAP Crystal Reports 2011 for added report functionality Download SAP Crystal Reports, developer version for Microsoft Visual Studio now › Colleague reviewing a report created with powerful report design software Share Tweet this Share on Facebook Share on LinkedIn Share on Google+ Email 2 Features and Functionality Collapse All Features and Functionality Learn more about the features and functions of SAP Crystal Reports, developer version for Microsoft Visual Studio. Powerful designer features for creating rich reports Flexible Windows and Web application features support development ASP.NET features support your ASP development efforts Broad data access enables multiple sources and dynamic data output Platform features provide support and management for SAP Crystal Reports projects Get all the details on SAP Crystal Reports, developer version for Microsoft Visual Studio features › Less Technical & License Resources Discover if SAP Crystal Reports, developer version for Microsoft Visual Studio is right for you. Get started by reviewing the technical, data access and license details. Access virtually any data sources via ODBC, OLE DB or native connections Licensed for report design, runtime distribution and report viewer distribution Add reporting to thick client and internal server based .NET applications Learn more about data access, licensing and technical requirements › Less Report design options Make the most of the SAP Crystal Reports, developer version for Microsoft Visual Studio runtime by designing your reports in SAP Crystal Reports 2011 software. Utilize Crystal Reports 2011 and spend less time creating and integrating reports Use an editable preview panel and edit reports while viewing them Use RPTR files to protect your report designs from downstream modifications Leverage an object repository for component reuse Utilize a workbench tool to help manage projects Learn more about upgrading to SAP Crystal Reports 2011 › Less Discover Managed BI Extend your existing .NET reporting solutions with SAP Crystal Server for report object, user, and user group management. Utilize APIs for customizing server logon, user management and report scheduling Create data-driven publications, and extend publications with custom processing Add monitoring probes that help ensure the server is behaving as expected Use Web services to perform report scheduling, storing: querying and more Extend your reporting solutions with managed BI – learn more ›
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Jamie.T

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值