Message-ID: <1295487420.9701.1711699646756.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9700_499670170.1711699646756" ------=_Part_9700_499670170.1711699646756 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html SharePointIntegration.Open(ExcelTemplate, Microsoft.SharePoint.S= PDocumentLibrary, String)

SharePointIntegration.Open(ExcelTemplate, Microsoft.SharePoint.SPDo= cumentLibrary, String)

Introduced in build 7.1.0.1855

=20

Description

=20

Opens a spreadsheet from a SharePoint Document Library.

=20
C#
=20
public static void Open(this ExcelTemplate template, Microsoft.SharePoint.S=
PDocumentLibrary docLib, String fileName)
=20
=20
vb.net
=20
Public Shared Sub Open(ByVal template As ExcelTemplate, ByVal docLib As Mic=
rosoft.SharePoint.SPDocumentLibrary, ByVal fileName As String)
=20
=20

Parameters

=20
template
The current ExcelTemplate ob= ject which is opening the file=20
docLib
SharePoint Document Library that= contains the Excel spreadsheet being opened=20
fileName
The name of the file to open= . The file must be a BIFF8 format (Excel 97 or later) .xls or .xlt file or = an OOXML format .xlsx, .xlsm, .xltx, or .xltm file.=20

Exceptions

=20
ArgumentNullException
=20 Open will= throw this exception if=20 null (C#) or=20 Nothing (VB.NET) is passed to the method.=20
ArgumentException
=20

Remarks

=20
=20 Icon=20
=20

This is an extension method for the ExcelTemplate object to be used for = opening spreadsheets from SharePoint Document Libraries. To use this method= , you must add a reference to SoftArtisans.OfficeWriter.ExcelWriter.SharePo= intIntegration.dll

=20
=20
------=_Part_9700_499670170.1711699646756--