Posts

Showing posts with the label AddIn

Redirect in SharePoint provider hosted Add Ins

If you are using an asp:hyperlink to another page in your provider hosted app you will see the SharePointContextProvider will not be able to handle the redirect. To fix the problem you need to add a click event and call a redirect in your code behind.

register and debug provider hosted SharePoint Online Add Ins with tenant full controll

It is a while since Microsoft launched the Add In (or App) architecture for SharePoint, but there are still things they change or we are not familiar with. In August 2016 there was a change in giving tenant permissions to provider hosted Add Ins using app-only mode and Azure Access Control Service (ACS).

DragAndDrop in Outlook - is it a mail, an attachment or a file?

If you are developing an addin for outlook and you are building a drag and drop able control, you will need to check what kind of data droped in. In the following code I made differences between those three types: files from the filesystem, mails out of Outlook and attachments that came from mails in Outlook. I used the DragEventArgs to figure out what was droped and then I handle each way a bit different.

Create CustomTaskPanes in Office AddIns with C#

Image
To create you own workspace in an Office application like Outlook you need a CustomTaskPane . To call a CustomTaskPane you need to create at first a UserControl . In that UserControl you can build your own layout. After that you need to create a class called TaskPanes. This class contains two functions, one to create a CustomTaskPane and one to remove it. In the create-function you are creating an object of your UserControl and a CustomTaskPane-object. By creating the CustomTaskPane you are giving the UserControl and a headline over.