EasyXLS

Rich text format in cell

EasyXLS™ library allows you to import or export rich text format in the cells of an Excel file, by means of HTML syntax when setting the value for the cell.

The following tags are supported:
<b>
<strong>
<i>
<u>
<s>
<strike>
<sup>
<sub>
<font color= face= size=>
The above tags have the same meaning as in HTML.

In order to set the underline style for a group of characters EasyXLS uses four specific tags:
<underline single>
<underline double>
<underline single-accounting>
<underline double-accounting>

Source code sample

The below example shows how to export rich text format (RTF) in an Excel cell.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

The screen shot below represents the exported Excel file with rich text in cell generated by the code sample above.

Exported Excel file with rich text format in cell


Available for: Professional, Excel Writer, Excel Reader
Go to top

EasyXLS Excel libraries:

.NET
.NET Excel Library
full .NET version to import, export or convert Excel files
COM+ Excel Library
full COM+ version to import, export or convert Excel files
-
Java
Java Excel Library
full Java version to import, export or convert Excel files
Download EasyXLS™ Excel Library for .NET and Java

File formats:

MS Excel 97 - 2003
MS Excel 2007 - 2019
MS Excel 2021
Office 365
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT