Opens a spreadsheet from a SharePoint List Item.

public static void Open(this ExcelTemplate template, Microsoft.SharePoint.SPListItem listItem, String fileName)
Public Shared Sub Open(ByVal template As ExcelTemplate, ByVal listItem As Microsoft.SharePoint.SPListItem, ByVal fileName As String)

The current ExcelTemplate object which is opening the file

SharePoint List Item to which the file is attached

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.

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

This is an extension method for the ExcelTemplate object to be used for opening spreadsheets from SharePoint List Items. To use this method, you must add a reference to SoftArtisans.OfficeWriter.ExcelWriter.SharePointIntegration.dll