Hi,
I try to show pictures in the Report Details Section and simply don't bring it to work. I filled a DataSet with some images and gave it as DataSource to the Report.
During the ItemDataBinding event I wand to set the Value Property of my PictureBox:
private void Detail_ItemDataBound(object sender, System.EventArgs e)
{
DataSet ds = (DataSet)DataSource;
System.Drawing.Bitmap image =
(System.Drawing.Bitmap) ds.Tables["Maps"].Rows[RowIndex]["MapImage"];
PictureMap.Value = image;
RowIndex++;
}
As result I get this error:
Any ideas?
Greetings,
Alexander Brütt
I try to show pictures in the Report Details Section and simply don't bring it to work. I filled a DataSet with some images and gave it as DataSource to the Report.
During the ItemDataBinding event I wand to set the Value Property of my PictureBox:
private void Detail_ItemDataBound(object sender, System.EventArgs e)
{
DataSet ds = (DataSet)DataSource;
System.Drawing.Bitmap image =
(System.Drawing.Bitmap) ds.Tables["Maps"].Rows[RowIndex]["MapImage"];
PictureMap.Value = image;
RowIndex++;
}
As result I get this error:
|
Any ideas?
Greetings,
Alexander Brütt