Link to home
Start Free TrialLog in
Avatar of Éric Moreau
Éric MoreauFlag for Canada

asked on

Dynamic loading of an image into a report

Hi

I am using VS.Net 2003 and the version of Crystal Reports that is bundled with it.

Is it possible set the content of an object of the report to an image (from a C1Chart object).

For text objects, we can do this :
 CType(ReportToPrint.ReportDefinition.ReportObjects(vstrTextObject), CrystalDecisions.CrystalReports.Engine.TextObject).Text = vstrTextValue

Is there any way of doing something like this for images?
Avatar of Mike McCracken
Mike McCracken

WHat type is the image?  Crystal is limited in the image types it handles.

Can you save the chart as a bmp or jpg?

mlmcc
Avatar of Éric Moreau

ASKER

I bind my reports to schema (.xsd) and I use SetDataSource to pass a dataset to the report. I seems that I cannot have an image as part of my schema.

>>Can you save the chart as a bmp or jpg?

I can save the image to all the formats supported by System.Drawing.Imaging.ImageFormat (bmp and jpg are part of the list).
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
any objections in sending this questions to PAQ?