|
Programmer's Reference >
ExcelApplication API >
Area > ImportData
ImportData Method
Signature:
public Area ImportData ( System.Data.DataView data
, DataImportProperties props
)
Description:
Imports data from an ADO.NET DataView to the specified Area . The new data will overwrite values and formulas in the target worksheet cells, but existing formatting will be preserved.
Parameters:
|
data |
The DataView to import. |
|
props |
A DataImportProperties object that contains a set of properties that will determine the behavior of the data import. |
Returns:
Area
An Area object representing the set of cells populated with the imported values.
Examples:
[csharp]
DataImportProperties importProps = wb.CreateDataImportProperties();
importProps.Truncate = true;
Area importedArea = a.ImportData(dv, importProps);
[vbnet]
Dim importProps As DataImportProperties = wb.CreateDataImportProperties()
importProps.Truncate = True
Dim importedArea As Area = a.ImportData(dv, importProps)
Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.
|
|
|