Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Wiki Markup
{introducedin:7.1.0.1855

...

Description

Excerpt

Imports data from a SharePoint List to the specified Area. The new data will overwrite values and formulas in the target worksheet cells, but existing formatting will be preserved.

Signature
C#C#
}
{description}
{excerpt}Imports data from a SharePoint List to the specified [Area|Area].  The new data will overwrite values and formulas in the target worksheet cells, but existing formatting will be preserved.{excerpt}
{signature:C#}
public static Area ImportData(this Area area, Microsoft.SharePoint.SPList list)
Signature
{signature}{signature:vb.net
vb.net
}
Public Shared Function ImportData(ByVal area As Area, ByVal list As Microsoft.SharePoint.SPList) As Area
Parameters

...

The current Area object which is calling ImportData

...

SharePoint List to use as a data source for the Area

Returns

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

This is an extension method for the Area object to be used for binding SharePoint data to spreadsheets from within SharePoint. To use this method, you must add a reference to
{signature}
{parameters}
{param:area}The current Area object which is calling ImportData
{param}
{param:list}SharePoint List to use as a data source for the Area{param}
{returns}An {{Area}} object representing the set of cells populated with the imported values.{returns}
{remarks}
{note}This is an extension method for the Area object to be used for binding SharePoint data to spreadsheets from within SharePoint.  To use this method, you must add a reference to SoftArtisans.OfficeWriter.ExcelWriter.SharePointIntegration.dll
{note}
{remarks}


{example}{code:csharp|title=C#}

          Area importedArea = a.ImportData(myList);
        
{code}
{code:vb.net
|title=vb.net
}

          Dim importedArea As Area = a.ImportData(myList)
        {code}

{example}
Remarks
Note
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle