Viewing image from xml to CR
Image(binary data) should be coming from an XML file.
I've tried loading this image into a PictureBox and it works. It's just so odd I can't view this image in the report. Please help me.
How are you trying to load the image into Crystal Reports 9? Is you datasource for the report the XML file? Is this a stand alone report designer or the embedded report designer?
Keith - Business Objects
- private
{
DataSet dtsData=new DataSet();
ReportDocument oRpt;
XmlDocument xmlDoc =
new XmlDocument(); string xmlPath= "D:\\DownLoads\\RptPreviewCode\\RptPreview\\Source\\Bom1j0976 - Test C810 - Boot Grey_a723c76d74884249be06ad0059060143.xml";oRpt =
new RptPreview.Reports.rptBomMain(); dtsData.ReadXml(xmlPath); oRpt.SetDataSource(dtsData); this.rptViewer.ReportSource=oRpt;}
Since you are able to display the image from the DataSet object in a picture control, it should be able to display the image in the report.
The only suggestion I have is to read the schema before reading the xml file.
If this doesn't work, I recommend calling Business Object's customer support.
hi guys , i am still new in this field , and need little help
Rinoa can you post the code that let you display the binary data from XML to picture box (Image) on win form. this is what iam looking for, or any body
can do that help , thanks all.