1

いくつかの検証チェックに基づいてセルの色を変更し、それをユーザーに返す必要があるASPプロジェクトに取り組んでいます。

現在、Excel12.0オブジェクトライブラリを使用してこの機能を正常に実装しています。しかし問題は、パフォーマンスを改善する必要があるということです。InterOpライブラリは、私が予想していたよりも非常に低速です。

InterOpライブラリを使用せずにExcelシートのセルをフォーマットする方法はありますか?(OleDb接続とフォーマットを使用して接続するようなもの)??

あなたの知識を共有してください

4

1 に答える 1

3

Try using ExcelPlusPlus library from codeplex. It is not using OleDB

EPPlus link

From codeplex:

Create advanced Excel 2007/2010 spreadsheets on the server

EPPlus is a .net library that reads and writes Excel 2007/2010 files using the Open Office Xml format (xlsx). 


EPPlus supports:

Cell Ranges 
Cell styling (Border, Color, Fill, Font, Number, Alignments)
Charts
Pictures
Shapes
Comments
Tables
Protection
Encryption
Pivot tables
Data validation
Conditional formatting
VBA
Many more...
于 2012-11-20T06:19:46.340 に答える