ExcelService.NewWorkbook Method
Creates a new session that does not use a pre-existing workbook.
Namespace: Microsoft.Office.Excel.Server.WebServices
Assembly: Microsoft.Office.Excel.Server.WebServices (in Microsoft.Office.Excel.Server.WebServices.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function NewWorkbook ( _
path As String, _
uiCultureName As String, _
dataCultureName As String, _
<OutAttribute> ByRef status As Status() _
) As String
'Usage
Dim instance As ExcelService
Dim path As String
Dim uiCultureName As String
Dim dataCultureName As String
Dim status As Status()
Dim returnValue As String
returnValue = instance.NewWorkbook(path, _
uiCultureName, dataCultureName, _
status)
[WebMethodAttribute]
public string NewWorkbook(
string path,
string uiCultureName,
string dataCultureName,
out Status[] status
)
Parameters
path
Type: System.StringThe location of the workbook file to open. Must be an absolute path.
Maximum size is 4096 characters.
uiCultureName
Type: System.StringFollows the Microsoft .NET Framework standard of naming cultures as expressed in the System.Globalization.CultureInfo namespace. Examples of UI culture names: en-US, en-GB, fr-FR, de-DE, ka, ko-KR, ja-JP, hi, , zh-CHS. Use Empty string or Null when not applicable.
dataCultureName
Type: System.StringFollows the Microsoft .NET Framework standard of naming cultures as expressed in the System.Globalization.CultureInfo namespace. Examples of UI culture names: en-US, en-GB, fr-FR, de-DE, ka, ko-KR, ja-JP, hi, , zh-CHS. Use Empty string or Null when not applicable.
status
Type: []Alert information.
Return Value
Type: System.String
The sessionIdString value.
Remarks
The permission needed to create a new session is obtained from the path that is specified. The path is a path to a SharePoint document library, not a file.