Forums     Knowledge Base     OfficeWriter Online     
 
This documentation is for
OfficeWriter v3.0.4
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelApplication API > Area > ImportData

ImportData Method



Signature:

public Area ImportData ( System.Data.DataTable data )

Description:

Imports data from an ADO.NET DataTable 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 DataTable to import.

Returns:

Area An Area object representing the set of cells populated with the imported values.

Examples:

[csharp]
Area importedArea = a.ImportData(dt);
[vbnet]
Dim importedArea As Area = a.ImportData(dt)



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.