id
stringlengths
14
16
text
stringlengths
2
3.14k
source
stringlengths
45
175
7baa1fc8e208-0
You must set credentials for your users before they can call Excel Web Services by using your custom application. You must explicitly set credentials even if you intend to use the default credentials. Excel Web Services uses the authentication schemes that Microsoft SharePoint Foundation supports. For more information ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-various-credentials
7baa1fc8e208-1
version = ver; if (!docLib.EndsWith("/")) { docLib += "/"; } workbookPath = farmURL + docLib + fileName; docLibPath = farmURL + docLib; uiCulture = uic; dataCulture = datac; localTempFolder = localTemp; ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-various-credentials
7baa1fc8e208-2
protected bool AuthenticateFBAClaims(string userName, string password) { FBA.Authentication spAuthentication = new FBA.Authentication(); spAuthentication.Url = farmURL + "_vti_bin/Authentication.asmx"; spAuthentication.CookieContainer = new CookieCo...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-various-credentials
7baa1fc8e208-3
Public Sub VerifyCredentials() 'Check whether the default credentials 'should be used instead. If DefaultCredentialsCheckBox.Checked Then xlService.Credentials = System.Net.CredentialCache.DefaultCredentials Else 'Check whether user-defined credentials 'should be used instead. ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-various-credentials
0b0e3a84e956-0
When you are using Excel Web Services, it is good practice to close the workbook by calling the CloseWorkbook method if you are finished using the session. This closes the session and allows Excel Services to free resources in a predictable manner. This could potentially improve your server performance and robustness...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-closeworkbook-method-call-asynchronously
0b0e3a84e956-1
Public Sub CloseWorkbookAsync(ByVal sessionId As String) End Sub You don't have to implement the event that is called when the CloseWorkbookAsync method is called.You can find the signature in the "Reference.cs" file in your project "Web References" directory. Note You can find the CloseWorkbookAsync metho...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-closeworkbook-method-call-asynchronously
0b0e3a84e956-2
string sheetName = "Sheet1"; // TODO: change the workbook path to // point to workbook in a trusted location // that you have access to. string targetWorkbookPath = "http://myserver02/example/Shared%20Documents/Book1.xlsx"; // Set credentials ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-closeworkbook-method-call-asynchronously
0b0e3a84e956-3
Dim sheetName As String = "Sheet1" ' TODO: change the workbook path to ' point to workbook in a trusted location ' that you have access to. Dim targetWorkbookPath As String = "http://myserver02/example/Shared%20Documents/Book1.xlsx" ' Set credentials for re...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-closeworkbook-method-call-asynchronously
0b0e3a84e956-4
' Close the workbook asynchronously. ' This also closes session. es.CloseWorkbookAsync(sessionId) Catch e As SoapException Console.WriteLine("SOAP Exception Message: {0}", e.Message) Console.WriteLine("SOAP Exception Error Code: {0}", e.SubCod...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-closeworkbook-method-call-asynchronously
a94670dd368b-0
This example shows how to get an entire workbook, a snapshot of the entire file, or just a snapshot of the viewable sheets or objects in the file by using Excel Web Services. Getting the workbook or a snapshot is useful if you want to save a copy of the up-to-date workbook, store it somewhere, send it to someone, and s...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-an-entire-workbook-or-a-snapshot
a94670dd368b-1
The GetWorkbook method returns a byte array, in the same Excel file format as the one loaded into the session.To get a snapshot of the items that the Excel workbook author selected as viewable when saving the workbook from Excel to the server, use the WorkbookType.PublishedItemsSnapshot enumeration as shown here: ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-an-entire-workbook-or-a-snapshot
a94670dd368b-2
// TODO: Change the using GetSnapshot.myServer02 statement // to point to the Web service you are referencing. using GetSnapshot.myServer02;
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-an-entire-workbook-or-a-snapshot
a94670dd368b-3
namespace GetSnapshot { class ExcelServicesSnapshot { static void Main(string[] args) { try { if (args.Length < 1) { Console.Error.WriteLine("Command line arguments should be: GetSnapshot [workbook_path] > [snapshot_file...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-an-entire-workbook-or-a-snapshot
a94670dd368b-4
catch (Exception e) { Console.WriteLine("Exception Message: {0}", e.Message); } } } } Imports System Imports System.IO Imports System.Text Imports System.Web.Services.Protocols ' TODO: Change the using GetSnapshot.myServer02 statement ' to point to the Web service...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-an-entire-workbook-or-a-snapshot
a94670dd368b-5
Catch e As SoapException Console.WriteLine("SOAP Exception Message: {0}", e.Message) Catch e As Exception Console.WriteLine("Exception Message: {0}", e.Message) End Try End Sub End Class End Namespace Use the following command line and arguments to...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-an-entire-workbook-or-a-snapshot
28fd400a0959-0
This example shows how to specify range addresses by using range coordinates, named ranges, rows, and columns. It also shows how to specify a sheet name and the relationship between a sheet name and a range address. Range coordinates are the four integer coordinates used to select a contiguous range. Range coordinate...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-specify-a-range-address-and-sheet-name
28fd400a0959-1
object[] rangeResult = xlservice.GetCellA1(sessionId, "Sheet3", "Sheet3!G18", true, out outStatus); Dim rangeResult() As Object = xlservice.GetCellA1(sessionId, "Sheet3", "Sheet3!G18", True, outStatus) The only case that does not require a sheet name is a named range, because some named ranges have a workbook s...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-specify-a-range-address-and-sheet-name
28fd400a0959-2
Status[] outStatus; RangeCoordinates rangeCoordinates = new RangeCoordinates(); string sheetName = "MySheet1";
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-specify-a-range-address-and-sheet-name
28fd400a0959-3
// TODO: Change the path to the workbook // to point to a workbook you have access to. // The workbook must be in a trusted location. // Using the workbook path this way will allow // you to call the workbook remotely. string targetWorkbookPath = "htt...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-specify-a-range-address-and-sheet-name
28fd400a0959-4
// Call the GetRange method again to see if // the Sum total in the last column changed. object[] rangeResult2 = xlservice.GetRange(sessionId, sheetName, rangeCoordinates, false, out outStatus); Console.WriteLine("Sum in the last column after Set...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-specify-a-range-address-and-sheet-name
28fd400a0959-5
Try ' Call the open workbook, and point to ' the workbook to open. Dim sessionId As String = xlservice.OpenWorkbook(targetWorkbookPath, String.Empty, String.Empty, outStatus) ' Prepare object to define range coordinates ' and call the G...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-specify-a-range-address-and-sheet-name
28fd400a0959-6
' Close workbook. This also closes the session. xlservice.CloseWorkbook(sessionId) Catch e As SoapException Console.WriteLine("Exception Message: {0}", e.Message) Catch e As Exception Console.WriteLine("Exception Message: {0}", e.Message) ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-specify-a-range-address-and-sheet-name
f9989ab4ac76-0
Excel Web Services exposes four methods for setting values into an Excel workbook: SetCell , SetCellA1 , SetRange , and SetRangeA1 . Note When you make changes to a workbook—for example, by setting values to a range using Excel Web Services—the changes to the workbook are preserved only for that particular se...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-1
Methods that have the A1 suffix ( SetCellA1 and SetRangeA1 ) use a different coordinate system than those that do not ( SetCell and SetRange ). If you want to use Excel-style references to cells, such as range references (for example, H8, A3:D5, Sheet2!A12:G18) or named ranges, you should use the methods with the...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-2
If you are getting values from multiple adjacent cells, you may want to consider using the SetRange method instead of making multiple calls to the SetCell method. This results in a single round trip to the server instead of multiple round trips. Therefore, in some cases, you may gain a noticeable performance improv...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-3
// Set the path to a workbook. // The workbook must be in a trusted location. string targetWorkbookPath = "http://myserver02/example/Shared%20Documents/Book1.xlsx"; // Set credentials for requests. xlservice.Credentials = System.Net.CredentialCache.DefaultCredentials; // Call the open workbook, and point to the trust...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-4
Use the SetRange method to set values in a range in the open workbook by using numeric range coordinates: // Instantiate the Web service and make a status array object. ExcelService xlservice = new ExcelService(); Status[] outStatus; RangeCoordinates rangeCoordinates = new RangeCoordinates(); ... private void...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-5
SetStatusText("Waiting for SetRange..."); outStatus = xlservice.SetRange( sessionID, SheetNameTextBox.Text, rangeCoordinates, values); } catch (SoapException exc) { StopTimer("SetRange"); GenerateErrorMessage("SetRange", exc); } catch (Exception exc) { StopTimer("SetRange"); GenerateToolErrorMessage("While cal...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-6
For i As Integer = 0 To rangeCoordinates.Height - 1 Dim currentRow(rangeCoordinates.Width - 1) As Object For j As Integer = 0 To rangeCoordinates.Width - 1 currentRow(j) = fieldValues(i * rangeCoordinates.Width + j) Next j values(i) = currentRow Next i Try SetStatusText("Wait...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-7
void SetRangeA1Button_ServerClick(object sender, EventArgs e) { int height, width; CalculateHeightAndWidth(RangeNameTextBox5.Value.Trim(), out height, out width); object[] values = new object[height]; string[] fieldValues = RangeValuesTextBox1.Value.Split((",").ToCharArray()); if ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
f9989ab4ac76-8
Dim values(height - 1) As Object Dim fieldValues() As String = RangeValuesTextBox1.Value.Split((",").ToCharArray()) If fieldValues.Length <> height * width Then Throw New Exception("The number of inputs (" &amp; fieldValues.Length &amp; ") does not match" &amp; " the product of Height (" &amp; height &a...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-set-values-of-ranges
9eea22ef50a3-0
Excel Web Services exposes four methods for getting values from an Excel workbook: GetCell , GetCellA1 , GetRange , and GetRangeA1 . The GetCell and GetCellA1 methods return the value of a single cell. If you try to request more than a single cell—for example, by passing in a range reference such as "B1:E2" o...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
9eea22ef50a3-1
// Call the GetCell method to retrieve a value from a cell. // The cell is in the first row and first column; that is, cell A1 object[] rangeResult2 = xlservice.GetCell(sessionId, sheetName, 0, 0, true, out outStatus); ' Call the GetCell method to retrieve a value from a cell. ' The cell is in the first row and fir...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
9eea22ef50a3-2
ExcelService xlservice = new ExcelService(); Status[] outStatus; string sheetName = "Sheet2";
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
9eea22ef50a3-3
// Set the path to a workbook. // The workbook must be in a trusted location. string targetWorkbookPath = "http://myserver02/example/Shared%20Documents/Book1.xlsx"; // Set credentials for requests. xlservice.Credentials = System.Net.CredentialCache.DefaultCredentials; // Call the open workbook, and point to the trust...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
9eea22ef50a3-4
' Call the GetCell method to retrieve a value from a cell. ' The cell is in the first row and ninth column. Dim rangeResult2() As Object = xlservice.GetCell(sessionId, sheetName, 0, 8, False, outStatus) Use the GetRange method to get values from a range in the open workbook by using numeric range coordinates. ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
9eea22ef50a3-5
' get their value from user input. rangeCoordinates.Column = CInt(Fix(startCol.Value)) rangeCoordinates.Row = CInt(Fix(startRow.Value)) rangeCoordinates.Height = CInt(Fix(startHeight.Value)) rangeCoordinates.Width = CInt(Fix(startWidth.Value)) ... Dim rangeResult1s() As Object = xlservice.GetRange(sessionId, sheetName,...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
9eea22ef50a3-6
object[] rangeResult = xlservice.GetCellA1(sessionId, sheetName, "MonthlyPayment", true, out outStatus); ' Instantiate the Web service and make a status array object. Dim xlservice As New ExcelService() Dim outStatus() As Status Dim sheetName As String = "Sheet2" Dim rangeResult() As Object = xlservice.GetCellA1...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
9eea22ef50a3-7
Dim rangeResults() As Object = xlservice.GetRangeA1(sessionId, "Sheet1", "B2:D3", True, outStatus) For Each rangeResult As Object() In rangeResults Console.WriteLine(String.Format("{0} | {1} | {2}", rangeResult(0), rangeResult(1), rangeResult(2))) Next rangeResult See also Tasks How to: Specify a Range Addre...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-get-values-from-ranges
a69290348611-0
Excel Services generates errors and error messages in the SOAP exception based on errors that occur in Excel Services. The following table shows the errors that are accessible when calls to the Excel Web Services methods throw a SOAP exception. You use the SubCode property of the SoapException class to capture th...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-error-codes
a69290348611-1
Make sure the size of the provided array matches the dimensions of the destination range (for example, 2 columns wide by 3 rows high). DiscontiguousRangeNotSupported The request for the range does not refer to a contiguous range. Excel Services supports contiguous ranges only. The caller supplied a nonc...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-error-codes
a69290348611-2
FileOpenNotFound The file you selected could not be found. Check the spelling of the file name and verify that the location is correct. A call to the OpenWorkbook method failed because the file does not exist. Make sure that the file has not been renamed, moved, or deleted, that the file is in a trusted lo...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-error-codes
a69290348611-3
InvalidOrTimedOutSession The operation you performed cannot be completed at this time because the session is no longer available on the server. You can reload the workbook and create a new session, but any changes you have made have been lost. The call sessionId value is either invalid or has since timed out...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-error-codes
a69290348611-4
Try the operation again using one of the supported object types. OperationCanceled The operation has been canceled. The operation that is currently taking place is canceled because the user calls the CancelRequest method. Call the CancelRequest method only if you want to cancel the current operat...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-error-codes
a69290348611-5
Only empty cells or cells that contain values can be edited by Excel Services. SheetRangeMismatch The sheet provided as the sheet argument is not the same as the sheet specified in the range argument. The name of the sheet passed in for a sheetName parameter does not match the sheet location specifie...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-error-codes
de675cf97172-0
In this step, you will build and test your application. Visual Studio offers several methods to build and run a console application from the IDE, such as: Start Without Debugging ( CTRL + F5 ) Start ( F5 ) Build, Run, and Debug the Application To build and run the application On the Debug menu, ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-4-building-and-testing-the-application
de675cf97172-1
Index Out Of Range Exception If you try to get a value from outside the range, you will get a System.IndexOutOfRangeException exception. The application prints the following output to the console: The Credential is: System.Net.SystemNetworkCredential The sessionID is : 64.28e58e90-b757-4658-b1c4-890ad68ef6...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-4-building-and-testing-the-application
de675cf97172-2
End Try To run the application using F5 You can run your application by clicking Start on the Debug menu, or by pressing F5 . To ensure that the console window remains open after the program has finished executing, you could add the following line of code at the end of your code (after the catch block): ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-4-building-and-testing-the-application
4e03145e2cd5-0
After you have added a reference to Excel Web Services to your project, the next step is to create an instance of the Web service's proxy class. You can then access the methods of the Web service by calling the methods in the proxy class. When your application calls these methods, the proxy class code generated by Visu...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-3-accessing-the-web-service
4e03145e2cd5-1
Imports SampleApplication.ExcelWebService Imports System.Web.Services.Protocols To call the Web service Instantiate and initialize the Web service proxy object by adding the following code after the opening bracket in static void Main(string[] args) : ExcelService es = new ExcelService(); Dim es As...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-3-accessing-the-web-service
4e03145e2cd5-2
Note You can get the path to a workbook in Microsoft SharePoint Server 2010 by right-clicking the workbook and selecting Copy Shortcut . Alternatively, you can select Properties and copy the path to the workbook from there. Add the following code to set the credentials for the request. Note You have to...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-3-accessing-the-web-service
4e03145e2cd5-3
object[] rangeResult1 = es.GetRange(sessionId, sheetName, rangeCoordinates, false, out outStatus); Console.WriteLine("Total rows in range: " + rangeResult1.Length); Console.WriteLine("Value in range is: " + ((object[])rangeResult1[5])[2]); rangeCoordinates.Column = 3 rangeCoordinates.Row = 9 rangeCoordinates....
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-3-accessing-the-web-service
4e03145e2cd5-4
namespace SampleApplication { class Class1 { [STAThread] static void Main(string[] args) { // Instantiate the Web service and create a status array object and range coordinate object ExcelService es = new ExcelService(); Status[] outStatus;...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-3-accessing-the-web-service
4e03145e2cd5-5
object[] rangeResult1 = es.GetRange(sessionId, sheetName, rangeCoordinates, false, out outStatus); Console.WriteLine("Total Rows in Range: " + rangeResult1.Length); Console.WriteLine("Value in range is: " + ((object[])rangeResult1[5])[3]); // Close workbook. Thi...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-3-accessing-the-web-service
4e03145e2cd5-6
' Set credentials for requests es.Credentials = System.Net.CredentialCache.DefaultCredentials 'Console.WriteLine("Cred: {0}", es.Credentials); Try ' Call open workbook, and point to the trusted ' location of the workbook to open. Dim...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-3-accessing-the-web-service
5d7d78eb5ab7-0
Web service discovery is the process by which a client locates a Web service and obtains its service description. The process of Web service discovery in Visual Studio involves interrogating a website following a predetermined algorithm. The goal of the process is to locate the service description, which is an XML docu...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-2-adding-a-web-reference
5d7d78eb5ab7-1
Click Add Reference to add a Web reference for the target Web service. Visual Studio downloads the service description and generates a proxy class to interface between your application and Excel Web Services. For more information, see Accessing the SOAP API . See also Concepts Loop-Back SOAP Calls...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-2-adding-a-web-reference
97dd774b8c1f-0
For this walkthrough, you will create a new project and a simple console application that accesses Excel Web Services. This walkthrough assumes you are developing in Visual Studio. Creating the Project The following project uses Microsoft Visual Studio 2003. Note If you are using Microsoft Visual Studio 2005 ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/step-1-creating-the-web-service-client-project
03d1a79abdf3-0
If you are writing code within Microsoft SharePoint Foundation, for example, a custom web part, custom aspx page, and so on, you should make direct calls to Microsoft.Office.Excel.Server.WebServices.dll. You do this by linking directly to Microsoft.Office.Excel.Server.WebServices.dll. Using Simple Object Access Proto...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/loop-back-soap-calls-and-direct-linking
03d1a79abdf3-1
Excel Services Known Issues and Tips Excel Services Alerts Other resources Walkthrough: Developing a Custom Application Using Excel Web Services
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/loop-back-soap-calls-and-direct-linking
8eb6543aee0d-0
Excel Web Services uses Simple Object Access Protocol (SOAP) over HTTP and acts as a communications interface between client programs and Excel Services. The Web service consists of methods and a set of complex type objects that you can use to access the complete functionality of Excel Web Services. To call the service...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/accessing-the-soap-api
8eb6543aee0d-1
<endpointname>.asmx The name of the Web service endpoint. For Excel Web Services, it is ExcelService.asmx . For more information about the WSDL format, see the World Wide Web Consortium (W3C) WSDL specification at http://www.w3.org/TR/wsdl . See also Other resources Step 1: Creating the Web Servi...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/accessing-the-soap-api
55b1cae21e10-0
This topic lists the new types and members added to Excel Web Services. Excel Web Services Enhancements Excel Web Services is expanded and enhanced in Microsoft SharePoint Server 2010. In SharePoint Server 2010, you can edit and save a workbook programmatically. In addition, the Excel Web Services now supports open...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/what-s-new-in-excel-web-services
55b1cae21e10-1
New Enumerations The following are new enumerations added to Excel Web Services, in alphabetical order: ItemType Indicates the types of the returned items. SheetType Indicates the types of the returned sheets. SheetVisibility Indicates whether the returned sheets are visible. SaveOptions Specifies...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/what-s-new-in-excel-web-services
1d64b029cd1f-0
The following are links to blogs, forums, and additional resources related to Excel Services and SharePoint: Blog Name Links Cum Grano Salis Home page Excel Services page Microsoft Excel: The official blog of the Microsoft Excel product team Home page Forum Name Links ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-blogs-forums-and-resources
c407e3bad4ac-0
Microsoft Excel is feature-rich. With every release, the functionality gap between Excel and Excel Services gets narrower, and the number of unsupported features is reduced. But is not possible to support every Excel feature in the second version of Excel Services, in Microsoft SharePoint Server 2010. When deciding whi...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/supported-and-unsupported-features
c407e3bad4ac-1
In SharePoint Server 2010, to help users work with this limitation, Excel Services ignores certain unsupported features. In other words, rather than blocking the entire file from loading, Excel Services loads the file but you do not see the features that Excel Services does not support. Following are features that do...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/supported-and-unsupported-features
c407e3bad4ac-2
Viewing a File with Ignored Features If Excel Services is able to load files and not render certain unsupported features, how can you know the file that you are viewing is missing some features? You know that you are viewing a file with some missing features because Excel Services displays a notification above the wo...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/supported-and-unsupported-features
c407e3bad4ac-3
Excel Services Architecture Excel Services Blogs, Forums, and Resources Other resources Walkthrough: Developing a Custom Application Using Excel Web Services
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/supported-and-unsupported-features
ab53e965169c-0
An important aspect of Excel Services is that solution developers can use its power programmatically from their applications. These applications can be line-of-business (LOB) products or custom enterprise solutions that an organization develops internally. Following are examples of these applications: Multitiered...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-development-roadmap
ab53e965169c-1
Server-Side Excel Calculation For server-side Excel calculation, a custom application typically uses an Excel model as part of its logic. Instead of having to re-code Excel workbook business logic in a programming language, the business user can maintain the model in Excel in a server location. The developer never ne...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-development-roadmap
ab53e965169c-2
Note When you make changes to a workbook—for example, by setting values to a range by using Excel Web Services—the changes to the workbook are preserved only for that particular session. The changes are not saved or persisted back to the original workbook. When the current workbook session ends (for example, when you...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-development-roadmap
ab53e965169c-3
Get data from custom data sources into worksheets. Call Web services from the UDFs. Wrap calls to existing native code library functions—for example, existing Excel UDFs. For more information about Excel Services UDFs, see Understanding Excel Services UDFs . Using UDFs For information about Excel Se...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-development-roadmap
ab53e965169c-4
For more information about the JavaScript object model in Excel Services, see the Ewa namespace reference documentation. Using ECMAScript (JavaScript, JScript) For more information about JavaScript, see the following links: For more information about the JavaScript object model in Excel Services, see the E...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-development-roadmap
ab53e965169c-5
Concepts Excel Services Overview Excel Services Architecture Supported and Unsupported Features Excel Services Blogs, Forums, and Resources Other resources Walkthrough: Developing a Custom Application Using Excel Web Services
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-development-roadmap
b93f1013c077-0
Excel Services is part of Microsoft SharePoint Server 2010. Excel Services is built on ASP.NET and SharePoint Foundation technologies. Following are the core components in Excel Services: Excel Web Access Excel Web Services User-defined functions (UDFs) ECMAScript (JavaScript, JScript) Representatio...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-architecture
b93f1013c077-1
In the simplest configuration in SharePoint Server 2010—that is, a single computer running SharePoint Server 2010 as a stand-alone installation—all five components are installed on the same computer. However, in a typical enterprise environment with a large number of users, the components on the Web front-end server an...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-architecture
b93f1013c077-2
Note When you make changes to a workbook—for example, by setting values to a range by using Excel Web Services—the changes to the workbook are preserved only for that session. The changes are not saved or persisted back to the original workbook. When the current workbook session ends (for example, when you call the ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-architecture
b93f1013c077-3
REST API The REST API in Excel Services enables you to access workbook parts or elements directly through a URL. The URL contains a "marker" path, which is the entry point to an .aspx page, to the workbook file location, and to the path to the requested element inside the workbook. The discovery mechanisms built in...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-architecture
3ec6cfd816ce-0
Excel Services is a service application that enables you to load, calculate, and display Microsoft Excel workbooks on Microsoft SharePoint. Excel Services was first introduced in Microsoft Office SharePoint Server 2007. By using Excel Services, you can reuse and share Excel workbooks on SharePoint portals and dashboa...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-overview
3ec6cfd816ce-1
For more information about Excel Calculation Services, see Excel Services Architecture . By using Excel Services, you can view live, interactive workbooks by using only a browser. This means that you can save Excel workbooks and interact with them from within portal sites.You can also interact with Excel-based da...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-overview
3ec6cfd816ce-2
Excel Services also has a Web service. You can use Excel Web Services to load workbooks, set values in cells and ranges, refresh external data connections, calculate worksheets, and extract calculated results (including cell values, the entire calculated workbook, or a snapshot of the workbook). In SharePoint, you can ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-overview
3ec6cfd816ce-3
Figure 1. Dashboard with filtering and Excel content In addition to participating in integrated dashboards, Excel Services can also be used to display all or part of Excel workbooks to enable users to interact with that content in the familiar Excel user interface. Figure 2 shows a range being displayed, and cells ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-overview
3ec6cfd816ce-4
Secure and protect workbook models and back-end data. You can give users view-only rights to limit access to the workbook. For example, you can prevent users from opening a workbook by using Excel or you can control what they are allowed to view in a workbook. Users can have browser-based access to the content in a wor...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-overview
3ec6cfd816ce-5
ECMAScript (JavaScript, JScript) You can also use the JavaScript object model in Excel Services to automate, customize, and drive the Excel Web Access web part control. You can use the JavaScript object model to build more compelling and integrated solutions. JavaScript user-defined functions (UDFs) New in Micros...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-overview
3ec6cfd816ce-6
REST API You can use the REST API in Excel Services to access workbook parts or elements directly through a URL. The discovery mechanisms built into the Excel Services REST API enable developers and users to explore the content of the workbook manually or programmatically. For more information about the REST API in...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-overview
b2bef4e1e9bc-0
Introduction Duet Enterprise 2.0 gives you the ability to integrate the Duet reporting features within your SharePoint Add-in by doing a little customization. The secret to enabling reporting for your app is by using a hidden feature installed by Duet. You will need to staple this feature to custom features, so...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-reporting-with-duet-enterprise-2-0
b2bef4e1e9bc-1
<ActivationDependencies> <ActivationDependency FeatureId="e1fe41d3-7fc3-458f-9a66-6ecf6a39bb2c" FeatureTitle="AddReportingModel" /> <ActivationDependency FeatureId="9b60ccba-ebfd-4e38-87c8-3dea9cc2680a" FeatureTitle="SAPReportingForApps" /> </ActivationDependencies> </Feature>
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-reporting-with-duet-enterprise-2-0
b2bef4e1e9bc-2
Please note that the sequence in activation dependency is important. First, you must create the external content type and then activate the SAPReportingForApps feature. Also, note that the second feature (ID: 9b60ccba-ebfd-4e38-87c8-3dea9cc2680a ) is shipped with Duet Enterprise 2.0, but it is marked as hidden. With...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-reporting-with-duet-enterprise-2-0
b2bef4e1e9bc-3
Developing with Duet Enterprise 2.0 How to: Create an external content type from an OData source in SharePoint Using OData sources with Business Connectivity Services in SharePoint
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-reporting-with-duet-enterprise-2-0
0da44a89e833-0
Introduction SAP Business Workflow provides a way to automate business processes, and with Duet Enterprise 2.0, those workflows can be integrated within an SharePoint Add-in. The following steps show how to create an app, configure it, and then how to display the information retrieved from the SAP workflows. ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-1
To add an external content type: In the Solution Explorer , open the shortcut menu for the project, and choose Add , Content types for External Data source . On the Specify OData Source page, enter the URL of the Duet Enterprise Workflow Service. The following is an example of a Duet service URL: https:/...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-2
To add a custom action: Right-click the SharePoint Add-in project, and add a new UI Custom Action item. Open the Elements.xml file of the custom action host web feature. By replacing the code in the file with the following XML, the custom action will: Declare an ECB custom action and its attributes....
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-3
<CustomAction Id="ViewDetailsRibbonAction" RegistrationId="107" RegistrationType="List" Location="CommandUI.Ribbon" Title="View Details" HostWebDialog="false" HostWebDialogHeight="500" HostWebDialogWidth="500"> <CommandUIExtension> ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-4
Note Make sure the SAP workflow service allows basic authentication. The BDC auto-generation tools in Visual Studio currently only support anonymous and basic authentication. If you deploy the app and then navigate to Lists/WorkflowTaskCollection inside your app, you will see the following message: "Message f...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-5
Double click on WorkflowTaskCollection.ect . In the Properties window, update the value of ODataConnectionSettingId to SAPWorkflow . Allow the App to use the Connection. Open the AppManifest.xml . In Permission Requests , select Scope , BCS then Permission = Read. Press F5 to deploy ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-6
Right-click the Scripts folder and add a JavaScript file. Name it ViewDetails.js . This markup will do the following: Retrieves the ClientContext for the parent web. Retrieves the TaskInstanceParentId for the selected workflow task using the Duet workflow list GUID and the selected item ID. ...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-7
clientContext.executeQueryAsync( Function.createDelegate(this, this.onLoadingTaskSucceeded), Function.createDelegate(this, this.onError) ); } function onLoadingTaskSucceeded() { var sapParameters = parseParentTaskId(workflowItem. get_item("TaskInstanceParentId")); getDataFromSAP(sapParameters); }
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-8
// Parses the TaskInstanceParentId // to get SAP Origin and the id for the workflow in SAP. function parseParentTaskId(parentTaskId) { var idlength = parseInt(parentTaskId.substring(0, 2)); var sapParameters = new Object(); if (parentTaskId.length > (17 + idlength)) { sapParameters.workitemId = parentTaskId....
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0
0da44a89e833-9
wfDescriptionEntity = context.get_web().getAppBdcCatalog(). getEntity("DUET_WORKFLOW_CORE", "TaskDescriptionCollection"); context.load(wfDescriptionEntity); wfAttachmentEntity = context.get_web().getAppBdcCatalog(). getEntity("DUET_WORKFLOW_CORE", "AttachmentCollection"); context.load(wfAttachmentEnti...
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-sap-workflow-with-duet-enterprise-2-0