0

Hello I have a crystalReportViewer and CrystalReportSource on a web form.

I need to be able to bind the reportSource at run time to different report files.

I have the file data stored in a blob in a DB.

The mechanism I am using now is to save the blob to a file and then

this.CrystalReportSource1.Report.FileName = myFileName;

The issue is that I want to avoid saving the file on disk and somehow bind the report directly to a file stream.

Is that possible?

Thanks

4

1 回答 1

0

在 C# 中,我相信您应该能够使用类似以下的内容,但我还没有在我的系统上对其进行测试。

ReportDocument rpt = new ReportDocument();
rpt.Load(filestream); //filestream is your filestream object

试一试,如果您有问题,请告诉我。

于 2009-09-10T21:37:32.637 回答