Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

New Post: Why did you implement a different behaviour in XSSFWorkbook and HSSFWorkbook?

$
0
0
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.

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>