Do code
Code to Export to Excel using ExcelLite.
WriteableBitmap bitmap = new WriteableBitmap(640,300);
bitmap.Render(chart1, null);
bitmap.Invalidate();
SaveFileDialog sDialog = new SaveFileDialog();
sDialog.Filter = "Excel Files(*.xls)|*.xls";
if (sDialog.ShowDialog() == true)
{
Workbook workbook = new Workbook();
Worksheet worksheet1 = new Worksheet("SheetWithImage");
Lite.ExcelLibrary.SpreadSheet.Picture pic = new Lite.ExcelLibrary.SpreadSheet.Picture();
System.Windows.Controls.Image image = new System.Windows.Controls.Image();
image.Source = bitmap;
image.Name = "imgExport";
image.Width = 640;
image.Height = 300;
image.Stretch = Stretch.Fill;
pic.Image = new Lite.ExcelLibrary.SpreadSheet.Image(ImageTranslator.TranslateImageToBytes(image), 0xF01E);
pic.TopLeftCorner = new CellAnchor(1, 1, 10, 10);
pic.BottomRightCorner = new CellAnchor(8, 5, 10, 10);
worksheet1.AddPicture(pic);
workbook.Worksheets.Add(worksheet1);
Stream sFile = sDialog.OpenFile();
workbook.Save(sFile);
}