dear aspose.cells support,
I have a problem with saving some Excel graphs as a jpeg - complicated graphs are not saved properly.
I have attached a sample excel file - the code to save the graph is added below.
As you will see, the resulting jpeg does not look like it should be.
Thanks for looking into this.
Module Module1
Dim licensecells As Aspose.Cells.License = New Aspose.Cells.License
Dim asposecellslicensestring As String = My.Computer.Registry.GetValue(“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MWorks”, “AsposeCellsLicense”, “”)
Dim configdirectorystring As String = My.Computer.Registry.GetValue(“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MWorks\HPHMI”, “ConfigDirectory”, “”)
Sub Main()
Dim excel As New Aspose.Cells.Workbook(“E:\MWorks configuration\MWorks_HPHMI\templates\XYplot1.xlsx”)
REM license files
licensecells.SetLicense(asposecellslicensestring)
excel.CalculateFormula()
For Each a As Aspose.Cells.Worksheet In excel.Worksheets
For Each b As Aspose.Cells.Charts.Chart In a.Charts
b.ToImage(“E:\MWorks configuration\MWorks_HPHMI\templates\XYplot1.jpeg”, System.Drawing.Imaging.ImageFormat.Jpeg)
Next b
Next a
Console.ReadLine()
End Sub
End Module