This question is locked. New answers and comments are not allowed.
Hi all,
I've been using the following code to generate PNGs or Bitmaps:
But recently some of my clients have told me that it generating a corrupt file with 1kb size.
The Telerik DLLs version is 2011.1
Any ideas why? User permissions? ...
Thank you.
I've been using the following code to generate PNGs or Bitmaps:
Telerik.Windows.Controls.RadChart chart = ExtractRadChart(_canvasToPrint.Children);
if
(saveImage.ShowDialog() ==
true
)
{
BitmapEncoder encoder =
null
;
if
(saveImage.SafeFileName.ToLower().EndsWith(
".png"
))
{
encoder =
new
PngBitmapEncoder();
}
else
{
encoder =
new
BmpBitmapEncoder();
}
using
(Stream fileStream = saveImage.OpenFile())
{
ExportExtensions.ExportToImage(chart, fileStream, encoder);
}
}
But recently some of my clients have told me that it generating a corrupt file with 1kb size.
The Telerik DLLs version is 2011.1
Any ideas why? User permissions? ...
Thank you.