Description |
---|
...
Wiki Markup |
---|
{description} {excerpt}Imports data from an {msdn:System.Data.IDataReader |
...
Signature | ||
---|---|---|
C# | C# | |IDataReader} to cells in the worksheet. The new data will +overwrite+ values and formulas in the target worksheet cells, but existing formatting will be preserved.{excerpt}
{signature:C#}
public Area ImportData(System.Data.IDataReader data, Cell cell, DataImportProperties props)
|
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function ImportData(ByVal data As System.Data.IDataReader, ByVal cell As Cell, ByVal props As DataImportProperties) As Area
|
Parameters |
---|
Param | |||
---|---|---|---|
data | data | An instance of Msdn | {signature} {parameters} {param:data}An instance of {msdn:System.Data.SqlClient.SqlDataReader |System.Data.SqlClient.SqlDataReader |
1 | System.Data.SqlClient.SqlDataReader | ||
Msdn | |||
1 | System.Data.OleDb.OleDbDataReader | ||
Code Block | |||
Param | startCell | startCell | |
The cell at which to start entering the imported values. | |||
Param | props | props | |
A DataImportProperties object that contains a set of properties that will determine the behavior of the data import. |
Returns |
---|
An Area object representing the set of cells populated with the imported values. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |