Get the value of RepositoryItemPictureEdit in GridControl
-
I have one GridControl Form can contain column of type image PictureEdit and 1 Button, when its current right-click the column cell of the selected images and photos from your computer to load. But when I click on the Button will not get the value of the image column, I wrote the following code:
using (MemoryStream stream = new MemoryStream())
{ repositoryItemPictureEdit1.Appearance.Image.Save(stream, ImageFormat.Jpeg);
}The code on the report when it is run "Object reference not set to an instance of an object." What do you know with his help, thank you very much.
-
I have one GridControl Form can contain column of type image PictureEdit and 1 Button, when its current right-click the column cell of the selected images and photos from your computer to load. But when I click on the Button will not get the value of the image column, I wrote the following code:
using (MemoryStream stream = new MemoryStream())
{ repositoryItemPictureEdit1.Appearance.Image.Save(stream, ImageFormat.Jpeg);
}The code on the report when it is run "Object reference not set to an instance of an object." What do you know with his help, thank you very much.