tonyqus wrote:
tonyqus wrote:
tonyqus wrote:
For HSSFWorkbook, you can also use CellStyle, FillPattern and FillForegroundColor.Good news. Thank you.
tonyqus wrote:
Why do you use custom pallette in HSSF? I don't understand.I use it because I read it in the docs: http://poi.apache.org/spreadsheet/quick-guide.html#CustomColors. However, the type of FillForegroundColor property is short. How can I convert C# Color value to set FillForegroundColor property using IWorbook interface only?
tonyqus wrote:
Any other examples?In the next example:
var region = new CellRangeAddress(RowIndex, RowIndex + RowSpan - 1, ColIndex, ColIndex + ColSpan - 1);
_regionIndex = _cell.Sheet.AddMergedRegion(region)
HSSDSheet.AddMergedRegion(region) returns 0 and XSSDSheet.AddMergedRegion(region) returns 1 in the same situation.