Aspose.Cells 8.7.1.0 -> SheetRender.ToImage is not rendering cell's border correctly when cell content text oriented at 70 degrees (Format cell->Alignment tab->Orientation).
(see cell L3 of the provided Excel workbook's sheet named AAA).
You can use the provided code to reproduce the problem.
Here is a Snippet:
public void ProcessAllWorksheet()
{
foreach (Worksheet worksheet in workbook.Worksheets)
{
if (worksheet.IsVisible)
{
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;
imgOptions.HorizontalResolution = 200;
imgOptions.VerticalResolution = 200;
imgOptions.OnlyArea = true;
imgOptions.OnePagePerSheet = true;
System.Drawing.Bitmap image = null;
try
{
SheetRender sr = new SheetRender(worksheet, imgOptions);
image = sr.ToImage(0);
}
catch (Exception ex)
{
Console.WriteLine("Error: {0}", ex.Message);
}
image.Save(string.Format("_{0}.jpeg", worksheet.Name), System.Drawing.Imaging.ImageFormat.Jpeg);
}
}
}