Hi Team,
We are using Cell.setHtmlString function to set values inside a cell which contains html bold tag.
The below snippet of code
public static void main(String[] args) {
// Instantiate a new workbook
Workbook workbook = new Workbook();
// Get the first worksheet
Worksheet worksheet = workbook.getWorksheets().get(0);
// Insert a string value to a cell
worksheet.getCells().get("C2").setHtmlString("View by<b> Product </b>");
// Save the Excel file
try {
workbook.save("C:\\Downloads\\setCell-NewAspose.xlsx");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Aspose cell version - 23.12 generates the excel like below
image.png (5.9 KB)
But When I use the latest aspose cells which is 24.6
the space between by and Product is not seen.
image.png (3.8 KB)
So, could you please check and confirm if this is a bug with 24.6 Aspose cells java ?
Thanks,
Thilak Babu