I am trying to print the image that displayed in ImageBox. I found this solution but when I tried it I got the following error:
What am I missing?
Thanks in advance.
I am trying to print the image that displayed in ImageBox. I found this solution but when I tried it I got the following error:
What am I missing?
Thanks in advance.
The property on imagebox
is Image
, with an uppercase "I", not image
.
See the documentation.
You could use the PrintDialog.PrintVisual method to print out an Image
in WPF:
PrintDialog pd = new PrintDialog();
myPrintDialog.PrintVisual(imagebox, "Image");