hello, i am using SheetRender to convert a excel’s range to image,and insert it into word.
the code like below:
sheet.PageSetup.PrintArea = range.Address;
var options = new ImageOrPrintOptions()
{
ImageType = Aspose.Cells.Drawing.ImageType.Jpeg,
OnlyArea = true
};
SheetRender sr = new SheetRender(sheet, options);
var stream = new MemoryStream();
sr.ToImage(0, stream);
builder.InsertImage(stream);
but the result of the image is like this
sourceexcel.png (17.6 KB)
word.png (78.6 KB)
how can i solve?