Example
The following example exports a range to html and uses the css file tags.
C++
void OnCommand1()
bool x;
// Export file and set result to x
// Create a style.css file using steps in Visual Basic
//example
x = m_Spread1.ExportToHTMLEx("c:\\test.html",False, }"", "Testing", "c:\\style.css", "sample2", "left", "red",}"blue");
Visual Basic
'Create a style.css file with the following text
table.sample2{
background-color:#FF0000;
border: solid #000 1px;
width: 200px;}
th.blue{
color: #0000ff;
text-align: right;
background-color: #CCCCCC;}
tr.left{
font-style: italic;
text-align: left;
background-color: #FFFFCC;}
td.rd{
color: #ff0000
font-weight: bold;
text-align: left;
width: 150px;}
' Add the following code to a sample project
fpSpread1.ExportToHTMLEx "c:\test.html", False, "",
"c:\style.css", "sample2", "left", "red", "blue"