Hello,
I am currently evaluating Aspose.Cells and am wondering if it supports any vector graphics. If so, are there any examples of it?
Thanks,
Tony
Hi,
Well, yes, Aspose.Cells for .NET does support all the standard formats, including vector graphics e.g emf etc.
Here is a sample code, I have added an emf image to the worksheet.
Sample Code:
//Instantiating a Workbook object
Workbook workbook = new Workbook();
//Adding a new worksheet to the Workbook object
int sheetIndex = workbook.Worksheets.Add();
//Obtaining the reference of the newly added worksheet by passing its sheet index
Worksheet worksheet = workbook.Worksheets[sheetIndex];
//Adding a picture at the location of a cell whose row and column indices
//are 5 in the worksheet. It is “F6” cell
worksheet.Pictures.Add(5, 5, “e:\test\mypic.emf”);
//Saving the Excel file
workbook.Save(“e:\test\vectorimageBook.xls”, FileFormatType.Default);
For further reference, please see the document: http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/adding-pictures.html
Feel free to contact us any time if you need further clarification or help.
Thank you.