Office code samples

Download Office code samples and applications. New samples are added frequently in JavaScript, C++, C#, and VB.NET so check back often.You can also download code samples for other products like apps for Office, apps for SharePoint, Windows Azure, Silverlight, SharePoint, Windows 8, Windows Phone, or explore the official Visual Studio 2010 C#, VB.NET, and 101 LINQ samples.
Each sample is licensed to you by the party distributing it. Microsoft does not guarantee the samples or grant rights for any sample distributed by a party other than Microsoft. Use of this site is subject to the Terms of Use.
Sort by: rss
1599 results
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
This sample simulates a bookstore by using a SharePoint 2013 document library in which every document is a book. End users can request and buy new books by using the provided custom actions. The components of the app are localized for English and Spanish.
Featured
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
The samples in the Exchange 2013: 101 code samples package show you how to use the Exchange Web Services (EWS) Managed API to perform specific tasks with mailbox data on an on-premises Exchange server, Exchange Online, or Exchange Online as part of Office 365.
4.5 Star
(19)
Updated 12/19/2013
Released 7/18/2012
63,541 Downloads
C#
Muawiyah Shannak
JSLink files have the ability to quickly and easily change how a list views and forms are rendered. More specifically how the fields in that list should be displayed. I wrote the following code samples to be easy to understand and to achieve learning purposes.
4.6 Star
(36)
Updated 3/19/2015
Released 9/22/2013
18,924 Downloads
Carmelo La Monica
This example demonstrates how to use the library ClosedXml.Per can try this example, you must have VisualStudio 2010, as well as the library and ClosedXml.dll OpenXml microsoft installed on your pc.Description ClosedXml and a file with the extension. Dll designed for little
4.5 Star
(4)
Updated 11/18/2012
Released 11/16/2012
27,326 Downloads
OneCode Team
How to Export DataGridView Data to Excel by using Excel Object
3.5 Star
(10)
Updated 8/17/2016
Released 5/20/2015
31,479 Downloads
OneCode Team
How to convert excel file to xml format
4.2 Star
(18)
Updated 4/13/2015
Released 6/14/2013
74,364 Downloads
Ahmed Naji
In many time you will find yourself with some Excel file need to be saved or Export to SQL Server,I know it possible by using SQL Server Import and Export Wizard.But this depend on business Scenario itself ,so one  of the scenario is creating web application
or windows applicat
4.7 Star
(15)
Updated 1/6/2017
Released 3/21/2012
34,342 Downloads
OneCode Team - Microsoft
This sample demoed how to upload file to one drive and get a share link to share with REST using web application.
5 Star
(1)
Updated 4/12/2017
Released 8/30/2016
2,592 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
This sample demonstrates how to authenticate against Microsoft SharePoint Online in client applications using the managed SharePoint client-side object models.
3.4 Star
(28)
Updated 4/28/2011
Released 4/28/2011
26,359 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
Each code sample is part of the SharePoint 2010 101 code samples project. These samples are provided so that you can incorporate them directly in your code. Each code sample consists of a standalone project created in Microsoft Visual Studio 2010
4.5 Star
(45)
Updated 2/28/2012
Released 2/20/2012
89,213 Downloads
Nikhil ahuja
Sample DOwnload a file which is inside SharePoint OnlinePrior to work with the sample you must have an SharePoint online Site. A File uploaded anywhere on SharePoint.Run the Sample and ENter the info1. SiteUrl: Url of SharePoint Site.2. User Name : Name of the authenticated user
4.7 Star
(3)
Updated 11/30/2014
Released 11/30/2014
3,435 Downloads
C#

Couldn't find the sample you were looking for?

1 - 10 of 1599 Items