|
Programmer's Reference >
ExcelApplication API >
Area > ImportData
ImportData Method
Signature:
public Area ImportData ( Object[][] data
)
Description:
Imports data from a two-dimensional array of objects 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 |
A two-dimensional array of values to import to the worksheet. The first dimension corresponds to column and the second to row (that is, Object[column][row]). Thus, an array of data {{"A","B","C"},{"X","Y",Z"}} would be inserted into the worksheet as: |
Returns:
Area
An Area object representing the set of cells populated with the imported values.
Examples:
[csharp]
Area data = a.ImportData(dataArray);
[vbnet]
Dim data As Area = a.ImportData(dataArray)
Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.
|
|
|