简体   繁体   English

Visual Studio中来自对象的Crystal报表

[英]Crystal Report in Visual Studio from Object

I'm adding crystal reports to my solution, which is divide in different projects, but I cannot select the data source as an object from another project in my solution. 我正在向解决方案中添加水晶报表,该报表分为不同的项目,但是我无法从解决方案中的另一个项目中选择数据源作为对象。

The thing that I want to do is to fill a report with the result of a method. 我要做的就是用方法的结果填充报告。

I am assuming that your method is returning a dataset or a datatable. 我假设您的方法正在返回数据集或数据表。 Otherwise you will have to keep on adding the information returned from your method to a dataset in the code where you will be calling the report and use the SetDataSource to fill the report with your data. 否则,您将不得不继续将从方法返回的信息添加到代码中的数据集中,在数据集中您将在其中调用报表,并使用SetDataSource将数据填充到报表中。 Please refer the link given below 请参考下面给出的链接

Creating Crystal Reports using C# with Datasets 使用带有数据集的C#创建Crystal报表

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

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