Basically, i'm using a Charting tool in a webbased app to export a chart as a memorystream. The image itself is in PNG format (can also use BMP if needed).
How do i import this memorystream into a PictureObject in a Crystal Report? Or is what i'm trying to do impossible?
I've been looking around the internet, and it seems like i should be converting it to a byte array, and then sending that to CR, but that doesn't seem to work either.
I was hoping for something like this... MemoryStream imagestream = (MemoryStream)Session["ChartStream"]; byte[] image = imagestream.ToByteArray(); PictureObject graphProbe = Report_CIA.ReportDefinition.ReportObjects["Picture2"] as PictureObject; GraphProbe = image;
The .NET tools with Crystal Reports do not support what you are trying to do. Something like this may be possible with the Report Designer Component (RDC) or the Report Application Server (RAS), but then both of these technologies would have other limitations.
A possible solution would be to push the image into an ADO.NET dataset. You could create a subreport (unlinked) off of this dataset and at runtime push the image to the sub report.
Keith - Business Objects
Proposed as answer byneonprimetimeMonday, July 21, 2008 7:07 PM