Skip to content

Commit

Permalink
Merge branch 'OfficeDev:main' into ericl-outlook-spam-reporting-sample
Browse files Browse the repository at this point in the history
  • Loading branch information
elegault authored Mar 21, 2024
2 parents e5673a2 + ad5acd2 commit 735c19f
Show file tree
Hide file tree
Showing 67 changed files with 1,026 additions and 346 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ All of the following samples show how to access and work with a user's Microsoft
| Name | Description |
| -------------- | ------------ |
| [Get, edit, and set OOXML content in a Word document with a Word add-in](Samples/word-add-in-get-set-edit-openxml)| Shows how to get, edit, and set OOXML content in a Word document.|
| [Import a Word document template with a Word add-in](Samples/word-import-template)| Shows how to import templates in a Word document.|
| [Load and write Open XML in your Word add-in](Samples/word-add-in-load-and-write-open-xml) | Shows how to add a variety of rich content types to a Word document using the **setSelectedDataAsync** method with **ooxml** coercion type.|
| [Manage citations with your Word add-in](Samples/word-citation-management)| Shows how to manage citations in a Word document.|

Expand Down Expand Up @@ -111,12 +112,9 @@ To learn more about Office Add-ins, see the [Office Add-ins documentation](https

## Join the Microsoft 365 Developer Program

Get a free sandbox, tools, and other resources you need to build solutions for the Microsoft 365 platform.
Join the [Microsoft 365 Developer Program](https://aka.ms/m365devprogram) to get resources and information to help you build solutions for the Microsoft 365 platform, including recommendations tailored to your areas of interest.

* [Free developer sandbox](https://developer.microsoft.com/microsoft-365/dev-program#Subscription) Get a free, renewable 90-day Microsoft 365 E5 developer subscription.
* [Sample data packs](https://developer.microsoft.com/microsoft-365/dev-program#Sample) Automatically configure your sandbox by installing user data and content to help you build your solutions.
* [Access to experts](https://developer.microsoft.com/microsoft-365/dev-program#Experts) Access community events to learn from Microsoft 365 experts.
* [Personalized recommendations](https://developer.microsoft.com/microsoft-365/dev-program#Recommendations) Find developer resources quickly from your personalized dashboard.
You might also qualify for a free developer subscription that's renewable for 90 days and comes configured with sample data; for details, see the [FAQ](https://learn.microsoft.com/office/developer-program/microsoft-365-developer-program-faq#who-qualifies-for-a-microsoft-365-e5-developer-subscription-).

## Community

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ Office.initialize = function (reason) {
$('#hdnActiveTab').val(this.id.substring(3));
});

//hide the message
$('#message').click(function () { $('#message').hide(); });
// Hide the message.
$('#message').on("click", function () { $('#message').hide(); });

//wire up client-side processing
// Wire up client-side processing.
$('#btnSubmit1').click(function () {
$.ajax({
url: '../Services/Stocks.svc/GetHistory?stock=' + $('#txtSymbol1').val() + '&fromyear=' + $('#cboFromYear1').val(),
Expand Down
24 changes: 12 additions & 12 deletions Samples/Excel.OfflineStorageAddin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Samples/Excel.OfflineStorageAddin/src/taskpane/taskpane.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// The document is ready
$(document).ready(function () {

// Assign HTML buttons to functions
$('#create-table').click(loadTable);
// Assign HTML buttons to functions.
$('#create-table').on("click", loadTable);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
$(document).ready(function () {
app.initialize();
CheckButtons();
$('#AddBindings').click(CreateTable);
$('#AddData').click(AddRowsToTable);
$('#ClearFormat').click(ClearFormat);
$('#ClearData').click(ClearData);
$('#CellFormatting').click(DoCellFormatting);
$('#TableOptions').click(DoTableOptions);
$('#AddBindings').on("click", CreateTable);
$('#AddData').on("click", AddRowsToTable);
$('#ClearFormat').on("click", ClearFormat);
$('#ClearData').on("click", ClearData);
$('#CellFormatting').on("click", DoCellFormatting);
$('#TableOptions').on("click", DoTableOptions);

var sel = $("#TableStyle");
$.each(tableStyles, function (i, style) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$(document).ready(function () {
app.initialize();

$('#get-data-from-selection').click(getDataFromSelection);
$('#get-data-from-selection').on("click", getDataFromSelection);
});
};

Expand Down
6 changes: 3 additions & 3 deletions Samples/VSTO-shared-code-migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ The sample starts with an Excel VSTO add-in that provides functionality for the

## Applies to

- Excel, Outlook, Word, and PowerPoint, on Windows, Mac, and in a browser.
- Excel, Outlook, Word, and PowerPoint, on Windows, Mac, and in a browser.

## Prerequisites

To set up your development environment:

1. Install [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/).
2. Install the following workloads:
1. Install the following workloads:
- ASP.NET and web development
- .NET Core cross-platform development. **Note:** You need at least .NET Core version 2.2 or later to run the completed sample.
- Office/SharePoint development
- Visual Studio Tools for Office (VSTO). **Note:** This is an **Individual** component.

You will also need an Office 365 account. You can join the [Office 365 Developer Program](https://aka.ms/devprogramsignup) that includes a free 1 year subscription to Office 365.
You'll also need a Microsoft 365 account. You might qualify for a Microsoft 365 E5 developer subscription through the [Microsoft 365 Developer Program](https://aka.ms/m365devprogram); for details, see the [FAQ](https://learn.microsoft.com/office/developer-program/microsoft-365-developer-program-faq#who-qualifies-for-a-microsoft-365-e5-developer-subscription-). Alternatively, you can [sign up for a 1-month free trial](https://www.microsoft.com/microsoft-365/try) or [purchase a Microsoft 365 plan](https://www.microsoft.com/microsoft-365/business/compare-all-microsoft-365-business-products-g).

## Solution

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (!window.Promise) {

Office.onReady(() => {
$(document).ready(function () {
$('#getUserFileNames').click(getUserFileNames);
$('#getUserFileNames').on("click", getUserFileNames);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (!window.Promise) {

Office.onReady(() => {
$(document).ready(function () {
$('#getUserFileNames').click(getUserFileNames);
$('#getUserFileNames').on("click", getUserFileNames);
});
});

Expand Down
11 changes: 4 additions & 7 deletions Samples/auth/Office-Add-in-ASPNET-SSO/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,14 @@ The sample sends a hardcoded query parameter on the URL for the Microsoft Graph

## Join the Microsoft 365 Developer Program

Get a free sandbox, tools, and other resources you need to build solutions for the Microsoft 365 platform.
Join the [Microsoft 365 Developer Program](https://aka.ms/m365devprogram) to get resources and information to help you build solutions for the Microsoft 365 platform, including recommendations tailored to your areas of interest.

- [Free developer sandbox](https://developer.microsoft.com/microsoft-365/dev-program#Subscription) Get a free, renewable 90-day Microsoft 365 E5 developer subscription.
- [Sample data packs](https://developer.microsoft.com/microsoft-365/dev-program#Sample) Automatically configure your sandbox by installing user data and content to help you build your solutions.
- [Access to experts](https://developer.microsoft.com/microsoft-365/dev-program#Experts) Access community events to learn from Microsoft 365 experts.
- [Personalized recommendations](https://developer.microsoft.com/microsoft-365/dev-program#Recommendations) Find developer resources quickly from your personalized dashboard.
You might also qualify for a free developer subscription that's renewable for 90 days and comes configured with sample data; for details, see the [FAQ](https://learn.microsoft.com/office/developer-program/microsoft-365-developer-program-faq#who-qualifies-for-a-microsoft-365-e5-developer-subscription-).

## Additional resources

* [Microsoft Graph documentation](https://learn.microsoft.com/graph/)
* [Office Add-ins documentation](https://learn.microsoft.com/office/dev/add-ins/overview/office-add-ins)
- [Microsoft Graph documentation](https://learn.microsoft.com/graph/)
- [Office Add-ins documentation](https://learn.microsoft.com/office/dev/add-ins/overview/office-add-ins)

## Copyright

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Office.initialize = function () {
$(document).ready(function () {
app.initialize();

$("#getOneDriveFilesButton").click(getFileNamesFromGraph);
$("#logoutO365PopupButton").click(logout);
$("#getOneDriveFilesButton").on("click", getFileNamesFromGraph);
$("#logoutO365PopupButton").on("click", logout);
});
};

Expand Down
Loading

0 comments on commit 735c19f

Please sign in to comment.