We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

3D charts lose their rotation after being saved as images

Hello,

When saving as image an excel chart which contains a rotation effect, the resulted image is very different from the source.

Attached, you can find the source excel document and the output image. Here is the code I used to generate the output file:

const string testFile = “TestFile.xlsx”;

var document = new Workbook(testFile);
var printOptions = new ImageOrPrintOptions
{
Quality = 100,
VerticalResolution = 200,
HorizontalResolution = 200,
PrintingPage = PrintingPageType.IgnoreBlank,
ImageFormat = ImageFormat.Png,
OnePagePerSheet = true,
OnlyArea = true
};
var sheetRender = new SheetRender(document.Worksheets[0], printOptions);
sheetRender.ToImage(0).Save(“TestFile.png”);

InternalID: 27393

Best regards,
Stanescu Jean-Alexandru
Junior Developer
IBM Romania

                                <br>

Hi Stanescu,


Thank you for contacting Aspose support.

We have evaluated the presented scenario while using the latest version of Aspose.Cells for .NET 8.5.1.1, and we are able to notice the issue. We have logged it in our bug tracking system under the ticket CELLSNET-43803 for further investigation. Please allow us some time to properly investigate the matter and get back to you with updates in this regard.

Hi,


We have evaluated your issue further. I am afraid, currently, we don’t support perspective for 3d
charts. The X and Y Rotations are supported
when “Right Angle Axes”(3D-Rotation–>Chart Scale) is checked. Your issue “CELLSNET-43803” is still open, we might support it in future versions.

Thank you.