Hi,
In the dataset designer page, create a table e.g., Images.
Then try the following in the reportviewer form:
Image oLogo;
MemoryStream msX = new MemoryStream();
if (File.Exists(image path))
{
oLogo = Image.FromFile(image path);
oLogo.Save(msX, System.Drawing.Imaging.ImageFormat.Bmp);
}
DataRow dr;
dr = DataSet.Images.NewRow();
dr[0] = msX.GetBuffer();
DataSet.Images.Rows.Add(dr);
DataSet.WriteXmlSchema(msX);
Then open database-expert from the report. You will see that the Image table is shown. Include it in your datasource.
In the report, open field explorer and you will find a BLOB field in the Image table.
Drag and drop it into the report.
I hope it will help you.
Thanks & Regards
Panna
Digital Horizons
India
|