Click or drag to resize

ExcelTableConverter Class

Convert ice.NET table object data from and to Excel files. These methods use the OLE DB Excel driver and have to deal with its limitations regarding data type detection.
Recommendation: Always use the TableAttrValues2ExcelFile method to produce a template before inserting data and updating the ice.NET object.
Inheritance Hierarchy
SystemObject
  PDTec.IceNet.Sdk.UtilsExcelTableConverter

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static class ExcelTableConverter

The ExcelTableConverter type exposes the following members.

Methods
  NameDescription
Public methodStatic memberExcelFile2TableAttrValues
Reads an Excel file and produces a table-compatible DataTable object. Since transaction boundaries should not be fixed by a helper method and we do not want to tinker around with the OLE DB Excel driver within an ice.NET transaction this methods does not update the table object itself. Instead we can easily update the object's table attributes with the IObject.SetTableAttrValues method family.
Public methodStatic memberTableAttrValues2ExcelFile
Produces Excel file from table object. This method fails if the table object has no table-style attributes. If there are no rows so far, the method produces an Excel file with appropriate column headers.///
Top
See Also