ms-office

Office add-in ribbons: same tab with 2 addins

最后都变了- 提交于 2019-12-21 04:21:20
问题 I'm trying to make two word add-ins' groups to appear in the same tab (Tools) but they both create unique tabs (there's two 'Tools' tabs). I saw this video but I'm using the Visual Designer, not XML. Can I edit the designer code in some way to make this work? 回答1: http://blogs.msdn.com/b/vsto/archive/2008/03/10/share-a-ribbon-customization-between-office-applications.aspx Office 2007 Create the Ribbon Create a 2007 Excel, Outlook, PowerPoint, or Word project in Visual Studio. For the purpose

Outlook VSTO ribbon to home tabControlId

妖精的绣舞 提交于 2019-12-21 04:06:26
问题 I'm writing a VSTO Microsoft Outlook plug-in. The version destination of that plugin is Outlook 2007 and 2010, so I use the Outlook 2007 add-in (in Visual Studio). I have some (visual) problem with ActiveMenuBar. In Outlook 2007 it works fine, but in 2010 the ActiveMenuBar doesn't exist; it is replaced with tabControl and ribbons. I would like to check the version ( Application.Version ) and if the version is 14 (Outlook 2010) then don't add an item into ActiveMenuBar, but add a ribbon to the

Write a Macro in VBA - excel AFTER the user has closed the Excel

时光总嘲笑我的痴心妄想 提交于 2019-12-21 02:16:07
问题 I need to write a macro in Excel VBA, that terminates a process running in windows tasks AFTER the excel has been closed down. I tried it doing this on event workbook_BeforeClose Private Sub Workbook_BeforeClose(CANCEL As Boolean) Run "MacroCloseProcess" End Sub Where as MacroCloseProcess is defined like this Private Sub MacroCloseProcess() Dim oWMT As Object, oProcess As Object Set oWMT = GetObject("winmgmts://") For Each oProcess In oWMT.InstancesOf("Win32_Process") If (oProcess.name) =

Programmatically extracting slides as images from a PowerPoint presentation (.PPT)

空扰寡人 提交于 2019-12-20 08:59:45
问题 Given a PowerPoint presentation in .ppt format, what is the best way to programmatically and using only open source software extract an image representation (in say .jpg or .png ) of each slide in the presentation? The application will run in a Linux server environment, so installing Microsoft Office or Keynote is not an option. The functionality that I want to achieve programmatically is similar to: Keynote's export functionality ( File > Export... > Pictures > JPEG ) PowerPoint's Save As

Excel, ThisAddIn.vb: why is Application.SheetFollowHyperlink not called for =HYPERLINK()

这一生的挚爱 提交于 2019-12-20 07:27:28
问题 I'm trying to detect clicked hyperlinks in Excel. The Application.SheetFollowHyperlink Event claims that it will be called "when you click any hyperlink in Microsoft Excel." However, although it does fire when a cell contains a url like www.google.com , it does not when the cell contains =HYPERLINK("http://www.google.com", "google") . How do I detect clicks to the second type of hyperlink? For example, a simple excel add in: Public Class ThisAddIn Private Sub ThisAddIn_Startup(ByVal sender As

(JavaScript API 1.3 for Office) Custom Properties add method

半腔热情 提交于 2019-12-20 07:13:48
问题 Here's a link tho what made me start digging into custom Props again. I can see that my customProperties are 0 so i assume getCount is somewhat working, even though I'm accessing it through items.length and not customProps.getCount() Is this still intended or am i just not doing it right and it's possible doing as in the MS Office Documentation Now the main part of my question, the add method. Whatever i try it crashes and i get an exception. Can i assume add method is still not properly

Existing WOPI hosts?

依然范特西╮ 提交于 2019-12-20 05:45:15
问题 I'm about to implement my own WOPI host for viewing and editing Office documents on iOS and Android, but I was wondering if there are any existing solutions out there already? Can I use SharePoint or OneDrive documents for example? 回答1: Here's my little list of existing implementations: petrsvihlik/WopiHost OfficeDev/PnP-WOPI Microsoft/Office-Online-Test-Tools-and-Documentation apulliam/WOPIFramework Building an Office Web Apps (OWA) WOPI Host marx-yu/WopiHost thebitllc/WopiBasicEditor jacob

Updating Microsoft 2010 VBA Object Libraries

余生长醉 提交于 2019-12-20 05:42:09
问题 I created a program on my work computer which runs Microsoft Office 2016 however, my colleague cannot use the VBA program because it doesn't have the updated object library. Specifically, the Date and Left function prevent the program from working. If they are running a 2010 version of Microsoft Office, is it possible to update their Object Libraries? 回答1: You can't use references to newer libary version using an older version as it can provide functions that the older version don't have,

Let the button open a new window

我怕爱的太早我们不能终老 提交于 2019-12-20 05:41:11
问题 I want to add a button under the tab of my add-in, and clicking on the button should open a URL in a new window or Dialog box. I tried the follows: <Group id="Contoso.Tab1.Group2"> <Label resid="Contoso.Tab1.GroupLabel" /> <Icon> <bt:Image size="16" resid="Contoso.TaskpaneButton3.Icon" /> <bt:Image size="32" resid="Contoso.TaskpaneButton3.Icon" /> <bt:Image size="80" resid="Contoso.TaskpaneButton3.Icon" /> </Icon> <Control xsi:type="Button" id="Contoso.TaskpaneButton3"> <Label resid="Contoso

(JavaScript API 1.3 for Office) Custom Properties GetItemOrNull

百般思念 提交于 2019-12-20 05:21:59
问题 I've created this a couple days ago in which i needed help regarding how to add custom properties to a said document. First of all, I'm running Word 1701(7766.2047). Let's say I have a method In which I return a said custom property. First I'd check if the custom property has been created already. I would do this with a simple getItemOrNullObject(key) and.. If returns null Then simply create it AND return it Else return it It is of my understanding that I need to do a return context.sync()