Hi,
I took a picture from an excel file but
the quality of graph seems low. If I compare with the orginal I can see
- darker color
- shadow
- jagged eges
- different font
I followed the default instructions. Any suggestions to get a better picture:
Here is my code:
xlsLic.SetLicense(“Aspose.Total.lic”);
wordlic.SetLicense(“Aspose.Total.lic”);
string fileName = @"Balance Sheet_V20.xlsx";
Workbook workbook = new Workbook(fileName);
workbook.Settings.CultureInfo = new CultureInfo("en-US");
CultureInfo cult = new CultureInfo("en-US");
Worksheet worksheet = workbook.Worksheets["Charts"];
ImageOrPrintOptions options = new ImageOrPrintOptions();
options.AllColumnsInOnePagePerSheet = true;
options.ImageFormat = ImageFormat.Emf ;
options.OnePagePerSheet = true;
options.HorizontalResolution = 300;
options.VerticalResolution = 300;
options.OnlyArea = true;
Aspose.Cells.PageSetup pageSetup = worksheet.PageSetup;
pageSetup.IsPercentScale = false;
pageSetup.SetFitToPages(1, 1);
pageSetup.PrintArea = "A2:I20";
SheetRender sr = new SheetRender(worksheet, options);
sr.ToImage(0, "output graph.emf");
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertImage("output graph.emf");
doc.Save("output graph.docx");
Here the file Balance Sheet_V20.zip (46.1 KB)
Kind regards,