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
1518 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
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
(43)
Updated 2/28/2012
Released 2/20/2012
82,593 Downloads
Muawiyah Shannak
This JSLink sample allows you to change the priority field text color based on the task priority level (High, Normal and Low).Note: This sample is part from series of samples to learn you how to work with CSR templates.
How to deploy the JSLink templatesYou can deploy those JSLi
(7)
Updated 3/19/2015
Released 3/1/2014
3,303 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.
(24)
Updated 4/28/2011
Released 4/28/2011
21,327 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
Learn how to create an app for SharePoint that will use RESTful URLs to query and manipulate data in an external list.
(2)
Updated 2/6/2013
Released 7/16/2012
4,224 Downloads
C#
Muawiyah Shannak
If you work with a list that contains a lot of items, then you need to access the list items in chunks (UI experts/developers called it
paging or pagination).SharePoint list pagination requires two parameters, the size of the items page and the
requested page info. This code ha
(7)
Updated 7/20/2013
Released 7/20/2013
3,376 Downloads
Fernando A. Gómez
Sometimes while building WebParts or Application Pages, it is needed to display data using a grid, such as with ASP.NET's GridView control. Fortunately SharePoint has its own implementation: SPGridView, which we can use, as explained in the five samples shown below.
(11)
Updated 7/4/2011
Released 7/3/2011
12,150 Downloads
C#
MusakkhirSayyed
Import Data from SpreadSheet into SQL Server.
Are there special requirements or instructions for building the sample?DescriptionYou can import Data from Excel sheet into SQL Server by C# or VB.NET.                                               Two namespace is required for this
(3)
Updated 10/17/2014
Released 10/17/2014
16,673 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
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.
(17)
Updated 12/19/2013
Released 7/18/2012
44,744 Downloads
C#
OneCode Team
How to Export DataGridView Data to Excel by using Excel Object
(3)
Updated 8/17/2016
Released 5/20/2015
6,771 Downloads
MusakkhirSayyed
This Sample Describes How to Export Gridview in a doc/access/excel/html/xml/text/pdf/csv/print format.To export GridView in PDF format it requires ITextSharp Library. The download link of this library is given below.
itextsharp.dll
DescriptionThis Sample of Application describe
(6)
Updated 2/17/2014
Released 1/19/2014
38,213 Downloads

Couldn't find the sample you were looking for?

1 - 10 of 1518 Items