Hello! I have a workbook containing a text box. When rendering a range containing the text box to image, the text inside the text box is bold. Please, check the attachment!
Thank you.
Sample code:
var workbook = new Workbook(@"E:\test2\TextBoxInExcel\TextBoxInExcel\TextBold2.xlsx");
var imageOptions = new ImageOrPrintOptions
{
Quality = 100,
VerticalResolution = 200,
HorizontalResolution = 200,
PrintingPage = PrintingPageType.IgnoreBlank,
ImageFormat = ImageFormat.Png,
OnePagePerSheet = true
};
var worksheet = workbook.Worksheets[0];
worksheet.PageSetup.PrintArea = string.Format("a1:e6");
worksheet.PageSetup.TopMargin = 0;
worksheet.PageSetup.LeftMargin = 0;
worksheet.PageSetup.RightMargin = 0;
worksheet.PageSetup.BottomMargin = 0;
var sheetRender = new SheetRender(worksheet, imageOptions);
sheetRender.ToImage(0, @"E:\test2\TextBoxInExcel\TextBoxInExcel\output.png");
Hi,
We have fixed this issue.
Please download and try this fix: Aspose.Cells for .NET v7.3.0.3 and let us know your feedback.
Hi! This is still present in Aspose Cells 7.3.2.
Thank you,
Dragos Culea
Hi,
Thanks for your feedback.
We have reopened this issue. We will get back to you after fixing this issue.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\TextBoxInExcel\TextBoxInExcel\TextBold2.xlsx”;
var workbook = new Workbook(filePath);
var imageOptions = new ImageOrPrintOptions
{
Quality = 100,
VerticalResolution = 200,
HorizontalResolution = 200,
PrintingPage = PrintingPageType.IgnoreBlank,
ImageFormat = ImageFormat.Png,
OnePagePerSheet = true
};
var worksheet = workbook.Worksheets[0];
worksheet.PageSetup.PrintArea = string.Format(“a1:e6”);
worksheet.PageSetup.TopMargin = 0;
worksheet.PageSetup.LeftMargin = 0;
worksheet.PageSetup.RightMargin = 0;
worksheet.PageSetup.BottomMargin = 0;
var sheetRender = new SheetRender(worksheet, imageOptions);
sheetRender.ToImage(0, filePath + “.out.png”);
Hi,
The issues you have found earlier (filed as CELLSNET-40901) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.