views:

267

answers:

2

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

A: 

In C#, I believe that you should be able to use something like the following, but I haven't tested it out on my system.

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

Give it a try and let me know if you have issues.

Dusty
A: 

Hi Dusty,

thanks for the reply. I tried your suggestion but the Load method only takes in filenames.It does not have a signature which takes in filestream. I did some research online and did not find anything useful on that topic. I am surprised it's not supported.....

Susan

suzi167