Questions tagged [officedev]

This generalized tag is used for any MS Office related development. You can include this tag if you automate, extend or customize Office, create apps, COM libraries, dlls, add-ins, etc. It is expected that questions about Office development relate to specific programming problems.

Anything related to MS Office development can be tagged with the tag.

Consider adding the below tags as additional tags to your question or select more appropriate tags to the content of your question.

Additional resources

93 questions
2
votes
1 answer

How to Bind one handler to multiple ContentControls (with same title) in Word? Use Javascript API for Office

I'm developing with JavaScript API for Office, MS Word 2016, VisualStudio 2015. There are multiple Rich Text ContentContols with a same title in the document. I'm trying to bind these ContentControls to a handler so that I can get…
2
votes
3 answers

Howto: Outlook 2016 for Mac - Debugging/View Console Logs in Outlook Add-in

We develop an Outlook app (now called add-in) using html5/js originally for OWA but now it is targeted to all Office Supported Platforms. And indeed, it seems to work on all platforms (ios, safari on mac, windows browsers and outlook) except for…
2
votes
1 answer

System.Windows.Forms.ToolStrip height or autosize

I'm using a series of ToolStrips in an Excel 2007 Actions Pane. I'm programatically adding buttons to each ToolStrip and then adding each ToolStrip to the actions pane. So far so good; my ToolStrips appear, with their associated…
cori
  • 8,666
  • 7
  • 45
  • 81
2
votes
1 answer

Can not send mail using outlook manage api 2.2 with identity token

I want to send mail using EWS Managed API 2.2 and authentication token which obtained from Office.context.mailbox.getCallbackTokenAsync() method in office javascript api 1.1. also i used asp.net web api project to call ews functions.an execption…
DevÁsith
  • 1,072
  • 12
  • 38
2
votes
3 answers

Program that works in all version of excel

I have recently developed a Windows Form application which has several datagrids. My client needs to export the data into Excel. They are using different versions of Excel (i.e 2003,2007,2010,2013) but I'm using Office 2013. I have used excel 2013…
Sathish Kothandam
  • 1,530
  • 3
  • 16
  • 34
2
votes
4 answers

Expose VSTO functionality to VBA w/o local admin

What would be the best way to expose certain functionality in a Dotnet VSTO Excel add-in to VBA, without requiring the user to be a local administrator (i.e. no COM registration, no HttpListener)? Would it be possible to use Microsoft Message Queues…
ehnmark
  • 2,656
  • 3
  • 24
  • 20
1
vote
4 answers

Best practice for passing parameters in Microsoft Visual Studio Tools for Office (VSTO) 3 (C#)

Many of the parameters for interacting with the Office Object model in VSTO require object parameters that are passed by reference, even when the notional type of the parameter is an int or string. I suppose that this mechanism is used so that code…
cori
  • 8,666
  • 7
  • 45
  • 81
1
vote
2 answers

Distributing Office Applications built in Excel - Multiple Versions, Copying data in from old version

I'm working on a project where we'd like to be able to deploy an Excel spreadsheet to multiple users, and then be able to update that spreadsheet to different versions as the project progresses. Basically Excel is the user interface, and we are…
GetFuzzy
  • 2,116
  • 3
  • 26
  • 42
1
vote
1 answer

MessageComposeCommandSurface doesn't work in 1.1

I want to make an Add-in that : Is available when Reading an email Is available when Writing an email Is Pinnable when Reading an email So far I've managed to make a Manifest that can achieve 2 out of 3 requirements but not all 3 in the same…
Martin Kirk
  • 302
  • 2
  • 13
1
vote
0 answers

Project Online - access project data and custom list in C# application

I've been asked to pull some data from our MS Project online instance. I have worked out how to register an app and i've been able to connect to get some data with Web web = context.Web; context.Load(web.Lists, lists =>…
1
vote
1 answer

Office (Excel) Web Add-in not running (localhost)

Currently we have more and more problems with the development of Office Web Add-ins. Months ago we started not being able to launch web add-ins from Visual Studio with the debugger. The error message in the output window was "The program 'excel.exe'…
BraunSe
  • 58
  • 6
1
vote
1 answer

PowerPoint Programming: Indentation with Ruler margin levels not working?

Recently we upgraded one our PowerPoint addin to support 2007 and 2010. most of the items we were able to port without problem. one problem we have is that indentations doesn't work when create tables or shapes using the addin. for eg: same table…
Aneef
  • 3,641
  • 10
  • 43
  • 67
1
vote
0 answers

How to use python to develop office complement?

I'm trying to develop a web add-in for office, but I have not managed to call a Python function from the Javascript API. My question is whether there is any way to call the Python function from the Javascript API, or some way to develop a plugin…
Alf
  • 11
  • 1
1
vote
1 answer

PowerPoint Add-in only works after the third initialization on Office Online

Context In my company, I am in charge of developing an Add-in of type Content App only for PowerPoint. The add-in is built with ASP.NET MVC (4.5) and AngularJS (1.6.8) and works seamlessly on PowerPoint client (Version 1811, Build…
Kevin S.
  • 31
  • 4
1
vote
2 answers

Always getting "connection failed" connection sqlserver using VBA

I am trying to connection sqlserver from VBA program, I refer to the following code to achieve it, but I got the problem: connection failed. Any help. Thank you in advance. Code: Sub ADOExcelSQLServer() ' Carl SQL Server Connection ' …
Harry
  • 11
  • 1