I have a worksheet with a chart as well as other data contained in the print area. When I use the code below the the chart is missing. The chart is within the bounds of the print area. I am using free Spire.Xls 7.12.14.15040 + VS 2013
Any help / guidance would be appreciated.
Dim wb As New Workbook
wb.LoadFromFile(Me.TextBoxFrom.Text)
Dim sht As Worksheet = wb.Worksheets(0)
Dim rng As CellRange = sht.Names("_xlnm.Print_Area").RefersToRange
Dim img As Image ' = New Bitmap(Me.TextBoxTo.Text)
img = sht.SaveToImage(rng.Cells(0).Row, rng.Cells(0).Column, rng.Cells(rng.Cells.Count - 1).Row, rng.Cells(rng.Cells.Count - 1).Column)
img.Save(Me.TextBoxTo.Text, Drawing.Imaging.ImageFormat.Bmp)