When converting an Excel sheet to emf using Aspose, I noticed the text being cut.
Using the following code on the attachment template:
var workbook = new Workbook(@“test.xlsx”);
var options = new ImageOrPrintOptions
ImageFormat = ImageFormat.Emf,
OnlyArea = false, // copy as printed
TextRenderingHint = TextRenderingHint.ClearTypeGridFit,
OnePagePerSheet = true,
new SheetRender(workbook.Worksheets["Sheet1"], options).ToImage(0, @"test.emf");
You will find in the output some text is cut (see screenshot), and it is different from copy&paste manually using MS Excel (select the cells, copy as picture-> as shown when printed) which produced a fine output.
Could you take a look into this?