VS2010中用于桌面应用程序的Crystal报表 [英] Crystal Reporting in VS2010 for Desktop Application

查看:163
本文介绍了VS2010中用于桌面应用程序的Crystal报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的同伴我是6到8个月的程序员,我做一些平凡的编程,如我创建销售点/购买库存等。



整个编程生涯中,我从来没有做过水晶报告,我需要知道如何在 VS2010 中的C#中执行 Crystal报告(如库存软件)。



请在这方面指导我,或者向我建议任何链接,从中我可以从非常基本的 Crystal报告学习。



感谢。

解决方案


  1. 安装了Visual Studio的Crystal Reports,可以在这里找到。 http://scn.sap.com/docs/DOC-7824


  2. 我通常创建视图来获取我想要显示的数据。


  3. 您可以通过添加新项目 - >报表 - >水晶报表来创建新的水晶报表。 p>


  4. 在Visual Studio中,当您的新报表仍在视图中时,您应该看到Crystal Reports菜单,单击它,然后单击字段资源管理器。 p>


  5. 然后,您可以右键单击数据库字段以设置和设置报表的数据源位置。


  6. 您需要创建一个报表查看器才能看到相应的报表和代码。 p>


有很多关于如何在Visual Studio中创建CR报告的文章。 http://www.codemag.com/Article/0207021



这可能基于一个ASP.NET项目,但是创建一个程序基本上是一样的。 http://www.codeproject.com / Articles / 166291 / Generate-a-report-using-Crystal-Reports-in-Visual



这是一个很好的步骤。


Dear fellows I am 6 to 8 months old programmer and I do some plain programming like I've created point of sale/purchase inventory etc.

But in my whole programming career, I've never done crystal reporting, I need to know how can I do Crystal Reporting in C# in VS2010 for Desktop Application (like inventory software).

Please guide me in this regards or suggest me any link from where I can learn Crystal Reporting from very basic.

Thanks.

解决方案

  1. Make sure that you have installed Crystal Reports for Visual Studio which can be found here. http://scn.sap.com/docs/DOC-7824

  2. I usually create views to fetch the data that I want to be displayed. You can add the views to your dataset.

  3. You can make a new Crystal Reports by going to Add New Item -> Reports -> Crystal Reports.

  4. In Visual Studio, while your new report is still in view, you should see the the Crystal Reports Menu, click on it and then click on Field Explorer.

  5. You can then right click on Database Field to setup and set the datasource location of your report. The fields will then be in view to drag and drop.

  6. You will need to create a report viewer to see the report and code appropriately for it.

There are many articles on how to create CR reports in Visual Studio like these two. http://www.codemag.com/Article/0207021

This one may be based on a ASP.NET project but the procedure for creating one is basically the same. http://www.codeproject.com/Articles/166291/Generate-a-report-using-Crystal-Reports-in-Visual

This is a good one to follow step by step.

这篇关于VS2010中用于桌面应用程序的Crystal报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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