简体   繁体   English

VS2010中用于桌面应用程序的Crystal Reporting

[英]Crystal Reporting in VS2010 for Desktop Application

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. 亲爱的朋友们,我是6到8个月大的程序员,我做一些普通的编程,例如我已经创建了销售点/购买清单等。

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). 但是在我整个编程生涯中,我从未做过Crystal Reporting ,我需要知道如何在VS2010中针对桌面应用程序(如清单软件)在C#中执行Crystal Reporting

Please guide me in this regards or suggest me any link from where I can learn Crystal Reporting from very basic. 请在这方面为我提供指导,或为我提供任何链接,这些链接都可以让我从最基础的地方学习Crystal Reporting

Thanks. 谢谢。

  1. Make sure that you have installed Crystal Reports for Visual Studio which can be found here. 确保您已经安装了Visual Studio的Crystal Reports,可以在这里找到。 http://scn.sap.com/docs/DOC-7824 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. 您可以通过添加新项目->报告-> Crystal报告来创建新的Crystal报告。

  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. 在Visual Studio中,当仍在查看新报表时,应该看到Crystal Reports菜单,单击它,然后单击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. 像这两本书一样,有很多关于如何在Visual Studio中创建CR报告的文章。 http://www.codemag.com/Article/0207021 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. 该程序可能基于ASP.NET项目,但创建程序的过程基本相同。 http://www.codeproject.com/Articles/166291/Generate-a-report-using-Crystal-Reports-in-Visual http://www.codeproject.com/Articles/166291/Generate-a-report-using-Crystal-Reports-in-Visual

This is a good one to follow step by step. 这是一个很好的步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM