Export (0) Print
Expand All

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)

[WebMethodAttribute]
public string NewWorkbook(
	string path,
	string uiCultureName,
	string dataCultureName,
	out Status[] status
)

Parameters

path
Type: System.String

The location of the workbook file to open. Must be an absolute path.

Maximum size is 4096 characters.

uiCultureName
Type: System.String

Follows 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.String

Follows 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.

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.

Show:
© 2014 Microsoft