It saves an svg file, but IE was unable to open the file. Firefox throw the following error:
XML Parsing Error: not well-formed, Line Number 1, Column 3:
Hi,
Thanks for your posting and using Aspose.Cells for .NET
Please download and use the latest version:
Aspose.Cells
for .NET v7.1.2.7
Please use the following code to render to SVG. You must use SheetRender.
C#
string path = @“F:\source.xlsx”;
Workbook workbook = new Workbook(path);
Worksheet sheet = workbook.Worksheets[0];
//Apply different Image / Print options.
Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions();
options.OnePagePerSheet = true;
options.SaveFormat = SaveFormat.SVG;
SheetRender sr = new SheetRender(sheet, options);
for (int i = 0; i < sr.PageCount; i++)
{
sr.ToImage(i, path + i + “.out.svg”);
}
Thanks, that did it. Output looks really good.
Hi,
Thanks for your feedback.
Please also try the Aspose.Cells for .NET - Offline C# or VB.NET Demos for more help.
Please visit this link.
Aspose.Cells for .NET - Demos