Questions tagged [vsto]

1

votes
2

answer
1.5k

Views

Putting a WPF UserControl on the TaskPane of an Excel2007 Addin

I am making a Excel Addin in VS2010. The following code work fines if I make a winforms usercontrol private void ThisAddIn_Startup(object sender, System.EventArgs e) { var testControlView1 = new UserControl1(); var MyCustomPane = this.CustomTaskPanes.Add(testControlView, "Hello"); } Howe...
Mark Pearl
0

votes
0

answer
4

Views

What is the names of controls seen in MS-Office Task Pane?

I'm thinking of developing my own Excel addin with VTSO or native COM addin. Does anyone know what is the names of controls seen in task panes in MS-Office, like seen in attachment? I thought it is CMFCTasksPane, but it turns out different.
Pengin
0

votes
0

answer
4

Views

How can we create a MS WORD Add-in ribbon uisng Open XML SDK for Office

In one VSTO project for MS WORD, I created a custom Office Ribbon - with a button - for WORD 2010-2016 using VS2017 - Update 1809 as follows. Question: How can I achieve exactly the same using Open XML SDK 2.5 for Office in a similar VS2017 - Open XML for Office project? I've not found such example...
nam
1

votes
1

answer
1.9k

Views

VSTOInstaller.exe error 0x8007007F The procedure entry point GetFileVersionInfoExW could not be located in the dynamic link library VERSION.dll

I've got VSTO project for Outlook, developed in VS 2012. When I install it under Windows XP, where Visual Studio 2010 or later version is installed, I've got no problems. When I install it by clicking .vsto file under Windows XP where no Visual Studio is installed, VSTOInstaller.exe fails with 0x80...
Boogier
1

votes
1

answer
641

Views

Installing Office Customizations System.ArgumentException: Value does not fall within the expected range

I'm trying to deploy my Outlook Add-In to a Windows 10 Machine, but I always get this error after installation: Name: From: file:///C:/Users/Public/MycompanyOutlookAddIn.vsto ************** Exception Text ************** System.ArgumentException: Value does not fall within the expected range. at Sys...
gesuwall
1

votes
1

answer
255

Views

How to share user roaming settings between Outlook COM/VSTO and Office JS Add-in

Is it possible to share user’s roaming settings and preferences between COM/VSTO Outlook and Office JS Add-ins?
Slava Ivanov
1

votes
1

answer
438

Views

Outlook Ribbon XML - Get Active MailItem when other email item is open

What's the best way to retrieve the current active mailitem for all situations. So new mail, current mail, inline reply and normal reply. My current code works ok until user has an email open in different screen. This is considered to be the active item. MailItem mailItem = null; Inspector inspecto...
mausinc
1

votes
1

answer
1.7k

Views

Outlook 2010 Context Menu For Embedded Attachments - idMso?

I am working on Otlook 2010 add-in and currently customizing Ribbon UI. So far so good, but I have one problem with customizing context menu for embedded objects in mails. I have tried many idMso context menus, but none of them is working. Do anyone have experience which idMso is context menu shown...
nihique
1

votes
1

answer
1.3k

Views

How can I retrieve list of outlook contacts using VSTO?

I have created a VSTO project for outlook 2010 Using Visual studio 2010. I added below items to my project: A Ribbon with a Button A Windows Form When the button is pressed by user, the form is showing. I want the form to show list of all contacts in outlook but I don't know how should I access con...
mjyazdani
1

votes
2

answer
433

Views

Can I use VSTO instead of Open XML to manipulate altChunk features?

I would like to embed one Word document (call it "hidden.docx") into another Word document (call it "host.docx"). The document hidden.docx would not be visible at all when host.docx is opened in Word by an end-user. Document hidden.docx would only be carried inside host.docx, sort of as unstructure...
Sabuncu
1

votes
1

answer
1.3k

Views

How do I add a custom 2010 VSTO Office Runtime for InstallShield LE?

I'm trying to create a VSTO using an InstallSheild installer. I've followed the instructions found here for creating a custom redistributable version of 2010 VSTO. However, when I refresh the list, the new custom .prq doesn't show up. How do I create a custom .prq that will show up in the list of...
KronoS
1

votes
1

answer
2.1k

Views

Debugging Outlook 2010 plugin with Visual Studio 2012

I have a C# Outlook plugin and I'm using Visual Studio 2012. Whenever I try to debug against Outlook 2010 I get the following error: You cannot run or debug this project, because the required version of the microsoft office is not installed. I had the same issue with Office 2013 but that was fixed b...
casolorz
1

votes
1

answer
1.3k

Views

How to access extended properties set with EWS when accessing the item in VSTO for Outlook

The scenario is this: have an app which exports to Outlook and then have an Outlook add in which sends data to your app. It is easy enough to send info either way and then in Outlook to create an Outlook item with a user property or in the app to create the item using EWS and use the extended proper...
Marc K
1

votes
1

answer
1.2k

Views

How can I add the context menu and the Ribbon tab in the same Ribbon.xml

I am implementing a new addin for Office 2010. How to add the context menu and the Ribbon tab in the same Ribbon.xml file? I tried adding the ribbon and the context menu in the same Ribbon_Load onAction, but the context menu is not created at all. But I can see that the context menu is not loading n...
roopini n
1

votes
1

answer
500

Views

Excel Ribbon XML how to do a control like the Excel “Pivot Table” control

I would like to create a Control like the Pivot-Table in an Add-In XML ribbon. It's like a clickable button at the top and a dropdown Label opening a menu. Using the VSTO ribbon designer I am not able to reproduce it. In fact what I need is the XML for this control. Any idea ?
Jean-Marie
1

votes
1

answer
102

Views

Find out if the Ruler in PowerPoint is visible with VSTO

How can I check whether the ruler in PowerPoint design mode is visible/active from C# VSTO? I have searched for hours in the PowerPoint object model. Have I missed the obvious, or isn't there a flag specifying whether the ruler is visible or not? Are there any other workarounds available to check w...
Gedde
1

votes
1

answer
309

Views

Best way to structure an Excel VSTO project for multiple versions of Excel

I am converting a C# VSTO add-in to support multiple versions of Excel (2007, 2010, 2013). My current plan is to have 4 projects in the solution, the core functionality and the AddIn projects. My question is: is it possible to write the AddIn in such a way that it will work with all versions of Exce...
Erick T
1

votes
1

answer
2.1k

Views

Select entire row for a given selected cell

I have an Excel file with at least 20 columns differently named and at least 100 rows per column. I need a way to select an entire block (all the column for selected row) when a user click on a given cell. Right now I have a code like this: private void Application_SheetSelectionChange(object Sh, Ex...
user3749965
1

votes
2

answer
432

Views

How to handle daylight saving when using the Outlook C# GetFreeBusy() API?

I have an Outlook VSTO addin and I am doing search for resource calendar availability using the GetFreeBusy() API Calll which, given a date, will search over the next 28 days in 30 minute increments (by default) to determine which slots are free and which are busy. It works fine except I am struggli...
leora
1

votes
3

answer
981

Views

Outlook Add-in Exception - How to check the type of Outlook.Item?

I have an Outlook 2013 Add-in, Outlook.MAPIFolder inboxFolder; Outlook.Items mailInboxItems; private void ThisAddIn_Startup(object sender, EventArgs e) { ... other code --- mailInboxItems = inboxFolder.Items; mailInboxItems.ItemAdd += mailInboxItems_ItemAdd; } private void mailInboxItems_ItemAdd(obj...
emily_bma
1

votes
3

answer
3k

Views

How to install visual studio tools for office?

How to install visual studio tools for office runtime in order that I can use Word 2010 Document template in Visual Basic 2010?
mfd4094
1

votes
1

answer
1.5k

Views

How to open an excel file from VSTO plugin and get VSTO workbook?

I already know how to open file and get Workbook from Microsoft.Office.Interop.Excel namespace. But is there a way to get Workbook from Microsoft.Office.Tools.Excel namespace? Casting between the two does not work. I know this sound simple, but I'm stuck - all answers on SO point to Interop solution...
Mołot
1

votes
1

answer
492

Views

Outlook interop MailItem with F#

I am converting C# to F# for outlook email messages. This function will be called inside a try...with block if an exception occurs to email me. I normally use an SMTP mail service that works in the production environment only. I have to use Outlook in Dev. open System.Net.Mail open System.Runtime.In...
RT1138
1

votes
2

answer
3.2k

Views

MailItem SaveAs() Method FIletypes

When I pass olMHTML it saves it with .msg extension, but if I change the extension to .mht it works as an mht file perfectly and if I don't I have trouble opening the file with .msg extension. If I save it as olMSGUnicode, it saves with no extension but adding the .msg extension makes it work perfe...
shenk
1

votes
2

answer
654

Views

Word VSTO (VB.NET) - Get the image location, size, etc,?

I am creating an add-in using VB.NET VSTO for MS-Word. In this program I need to retrieve the details such as Location (Left, Top) and Size (Height, Weight) of all the images on the document. I also want to retrieve the page number where the image is located. I use the following code, Dim i As Integ...
Codename K
1

votes
2

answer
365

Views

What does it mean to use ribbon callbacks?

I am developing a COM add-in for Excel and I've received a comment that I should use ribbon callbacks. My code seems to work, so I don't know what the problem is. I have read about callbacks on the Internet, but haven't understood how it pertains to my add-in. The person who gave me the feedback is...
user1283776
1

votes
2

answer
266

Views

How to Differentiate SaveAs call and Save call in PowerPoint events?

I'm writting AddIn for PowerPoint 2010. I'm using two functions of PowerPoint. Application_PresentationBeforeSave(ByVal Pres As Microsoft.Office.Interop.PowerPoint.Presentation, ByRef Cancel As Boolean) Application_PresentationSave(ByVal Pres As Microsoft.Office.Interop.PowerPoint.Presentation) When...
Ajit Medhekar
1

votes
3

answer
5.3k

Views

VSTO add-in silent installation

I've developed a VSTO addin with VS2012 signed by a DigiCert certificate. I need to deploy it to all the Enterprise users so the installer shouldn't prompt the user because it will fail since all the installation process is silent. I'm not able to do it since it always ask the user if it should or s...
Pablo Yabo
1

votes
1

answer
575

Views

show dialog with WPF window under Outlook VSTO add-in

I created Outlook VSTO application. I want to popup a WPF window dialog when click button. Here is my WPF window: In code, when I want to open dialog, I do like this: var archiveSettingWindow = new ArchiveSettingWindow(); archiveSettingWindow.owner = ??? archiveSettingWindow.ShowDialog(); What shoul...
Boyi Li
1

votes
1

answer
340

Views

VSTO SaveAs file locked

I am trying to SaveAs() a sheet to csv file and immediately after load that csv file into string, using C# VSTO. The issue is that unless I Close() the workbook I can't access newly created csv file. The error is related to "file locked" issue. If I close the workbook or copy it to blank workbook th...
Jim
0

votes
0

answer
4

Views

Outlook Compose intercept attachments before check server maximum attachments size

I am trying to intercept the event which launches the check whether or not the attachments are to big for the server to handle, which is right after you add a attachment to the mail ('The file you're attaching is bigger than the server allows. Try putting the file in a shared location and sending a...
usselite
2

votes
1

answer
429

Views

VSTO MailItem.CC only has names, not emails

I'm trying to get MailItem.To .CC and .From and from what I've read it's supposed to be a semicolon delimited string. I'm looking for "[email protected];[email protected]" but i'm getting back "John Smith;Jane Smith" which is funny because the outlook address book does not contain any contacts so the name is com...
Dustin Davis
2

votes
1

answer
592

Views

Cannot debug VSTO addin on terminal server

Our development team mostly works on the same terminal server. We are working on an Outlook VSTO 2010 addin. We just migrated from "Visual Studio 2008/Office 2003/VSTO 2005" to "Visual Studio 2010/Office 2010/VSTO 2010". Attempting to debug the Add-In from Visual Studio results in the following e...
dan9298
2

votes
2

answer
2.3k

Views

Programmatically locating a table in a Word document

I'm wanting to update various tables in word documents using this method... http://msdn.microsoft.com/en-us/library/2dw39e8e.aspx I'm basically going to add rows based on an SQL view. The problem I'm having is trying to find the table objects programmatically in the Word document so I can add the r...
Aaron
2

votes
2

answer
1.3k

Views

Cannot iterate through Shapes collection

C# and word interop, I have a word document with some textboxs (msoTextBox shapes), the problem that I can't iterate through the shapes collection with the code below : foreach (Shape shape in WordDocument.Shapes) {} although when setting a breakpoint in the loop line I can see that WordDocument.Sh...
DevTun
11

votes
5

answer
18.6k

Views

Adding items to RibbonDropDown at runtime

So I have a dropdown menu in a ribbon with contents that can be changed while it is being used. Outlook is also happy to let me 'add' or 'insert' items into it, as long as I do not add more than 1 item. If I try to, I'll be told that the index is out of bounds rather than expanding the upper bounds...
CodeMinion
2

votes
2

answer
1.6k

Views

Setting MetaProperty for a lookup type causes MS Word to crash

We have a VSTO add-in written in VB.Net 3.5 and running in MS Word 2010. In this VSTO add-in we set a number of SharePoint (2010) Meta Properties that are returned from the documents ContentTypeProperties collection. Sometimes (quite regularly, but not all the time) when we set the Value property of...
David Wharton
2

votes
1

answer
2k

Views

Outlook AppointmentItem Write Event - how many times does it execute

I need to perform some activity when an appointmentitem (or specifically a meeting) is saved. What I want is once the user has filled in the info and clicks 'send', Outlook does it's stuff and my code executes once. However what I'm finding, is that the Write event occurs multiple times - at least...
Marcin
2

votes
1

answer
739

Views

Add Outlook Explorer ribbon in a Outlook 2007 add in?

I'm writing a Outlook 2007 add in which works in Outlook 2007 AND 2010(one build is supposed to work for both versions) - everything works perfect right now except for one thing: Outlook 2007 doesn't have a ribbon in the main Outlook Explorer window, but Outlook 2010 does. If I create a new Ribbon (...
nelshh
2

votes
1

answer
356

Views

Show Outlook Advanced Find dialog from .NET

When using Outlook 2007 or 2010 you can bring up the Advanced Find dialog by pressing Crtl+Shift+F. I have performed advanced queries against Outlook contact items and calendar items, but would like to show Outlook's native dialog box for users to perform more advanced searches instead of trying to...
CoderDennis

View additional questions