简体   繁体   English

VB.NET +水晶报表=是吗?

[英]VB.NET + Crystal Report = True?

I'm making a VB.NET application that needs to generate a number of different reports. 我正在制作一个VB.NET应用程序,该应用程序需要生成许多不同的报告。 The customer is already using Crystal Report and is happy with that so the plan is to integrate with that. 客户已经在使用Crystal Report并对此感到满意,因此计划与之集成。

What I basically want to do is: 我基本上想做的是:

  • Manually create template(s) in crystal report 在Crystal报表中手动创建模板
  • User selects type of report in application 用户在应用程序中选择报告类型
  • User filters the data according to his wishes 用户根据自己的意愿过滤数据
  • Crystal Report is opened with the relevant template and values from the application inserted 使用相关模板打开Crystal Report,并插入应用程序中的值
  • User can then review the data, create PDFs and print the reports. 然后,用户可以查看数据,创建PDF并打印报告。

My questions are: 我的问题是:

  • Is this doable at all in a simple way(quite a low budget project)? 这是否完全可以通过简单的方式实现(相当低的预算项目)? Are there any good tutorials? 有没有好的教程?
  • I don't want Crystal Report to communicate directly with the database but a number of calculations needs to be done in the VB.NET code. 我不希望Crystal Report直接与数据库通信,但是需要在VB.NET代码中进行许多计算。 Do I need to prepare the data in some special way? 我是否需要以特殊方式准备数据?
  • Can I include the Crystal Report templates inside the application and extract them when the report needs to be created? 我可以在应用程序中包含Crystal Report模板并在需要创建报告时提取它们吗?

Visual Studio does come with Crystal Reports functionality "in the box" (and has done since Visual Studio.Net) - you can use that to create your Crystal Reports, which by default will be embedded as a resource, if included in a project. Visual Studio确实具有“内置” Crystal Reports功能(自Visual Studio.Net以来已经完成)-您可以使用它来创建Crystal Reports,如果包含在项目中,默认情况下,它将作为资源嵌入。 It is possible also to load external files as well, though. 不过,也可以加载外部文件。

It's probably worth taking a look at the samples that use the Crystal Report viewer, as they will show that most of what you're asking is covered... 值得一看使用Crystal Report查看器的示例,因为它们将显示您所要求的大多数内容都已涵盖...

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

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