Questions tagged [vsto]

1

votes
2

answer
3.1k

Views

VSTO : how to set a ribbon's button from ThisAddIn class

I have a ribbon, that has button in it. When a user selects new document, I would like to change the ribbon's button's text. I think I've done everything but one line: private void ThisAddIn_Startup(object sender, System.EventArgs e) { var wb = this.Application; ((Word.ApplicationEvents4_Event)wb).N...
XristosK
1

votes
2

answer
5.3k

Views

Problem after installing VSTO runtime 2010 and .Net framework 4

Our entire team installed VS 2010(It has both VSTO runtime 2010 and .net framework 4).After installing that some of our developers are getting the below error (but for majority its working fine) while opening the deployed VSTO application from server developed in framework 3.5 and VSRO runtime 3: *...
satyajit
1

votes
3

answer
2.7k

Views

Update VSTO Word Addin without VSTO auto-update (no rights for installation for users)

I want to update a VSTO addin for word I create without let VSTO automatic update launch. In fact, my end-users have not enough rights for installing. I only want to update it, not install because first install will be done with vsto installation from VS publish folder with administrator rights. To...
Aelios
1

votes
2

answer
72

Views

How to avoid cell selection in Excel while processing in a VSTO add-in

I have developed an Excel add-in that populates a sheet with data. The main loop to populate the data is: Excel.Worksheet sheet = workbook.Sheets.Add(After: workbook.Sheets[workbook.Sheets.Count]); int newRow = 2; // Llena la hoja con el maestro foreach (var producto in maestro) { sheet.Cells[newRow...
jstuardo
1

votes
0

answer
33

Views

VSTO on online ver of MS Project

I developed an add-in for MS Project. However, my company opted to use the Office 365 online version. Which means employees do not need to install MS Project on their local machine. How will be able to use the add-in I created? Or how will I create an add-in for the online ver of MS Project? Thanks,...
Gilbert
1

votes
1

answer
79

Views

VSTO: How to implement Office Standard Custom Task Pane TabContainer

I'm looking for a simple way to implement the standard office custom Task pane TabContainer which looks like this one: Standard Office TabContainer (1) is easy to implement (2) with the TabContainer there is a way to use Icons also - but they don't look so nice like in this one with mouse over effec...
Roger Heckly
1

votes
1

answer
295

Views

Range.InsertXML throws when inserting Open XML

I'm writing a VSTO add-in for Word. I'm manipulating some content controls and have their Range objects. I'm trying to use the Open XML SDK to create XML element objects (OpenXmlElement) such as a Run (Run/w:r) and properties for it. Here's the XML: Hello world this should be bold When I pass this t...
Daniel A. White
1

votes
1

answer
148

Views

Recognize selection of chart in Excel Add-In (with VSTO)

I have the rather small task of creating an Excel Add-In with VSTO in C# (it's a requirement), where I have to provide some information in a TaskPane as soon as a chart has been selected in any Workbook/Worksheet. As I am totally new to VSTO or Office Extension in general, I don't seem to find any d...
PuerNoctis
1

votes
0

answer
98

Views

Get correct text color on custom task pane

I am currently building a Excel addin with a custom task pane. The background color respects the selected theme, i.e. it is Dark Gray when that Office theme has been selected. However, the text of labels is not. It is still black even with the Dark Gray theme, meaning it is barely readable. Is there...
Daniel Hilgarth
1

votes
1

answer
48

Views

Excel VSTO ribbon DropDownItem index to -1

I have a few VSTO ribbon combo boxes in a custom Exel ribbon. The two combo boxes that I am having difficulty with are CBO.Division and CBO.Category. I have the Division_ItemsLoading method doing a database query and filling the division combo box with the results. The CBO_Division_TextChanged has...
Justin
1

votes
0

answer
183

Views

Embed Cefsharp browser in Custom Task Pane for Excel

As the headline suggests, what I'm trying to do is to embed a Cefsharp Chromium browser in a VSTO Custom Task Pane (CTP) for Excel. I have tested the Cefsharp browser in a standard Windows form and it works beautifully. And I'm using this code for the CTP, and that also works without problems. The p...
user2739064
1

votes
0

answer
35

Views

Gif is not working with word vsto addin

I am working on application made with VSTO Addin.I am trying to add a Microsoft.Office.Tools.Ribbon.RibbonButton on Word Ribbon, with its image property set to a gif file present in my project resources, but when i try to run addin the gif I added is not animating. Gif used is a spinner. Thanks in...
Gurpreet Singh
1

votes
0

answer
140

Views

Get the Default Table Style of a Word Document (from VSTO add-in)

Question: How can I get the default table style for the document from a C# VSTO addin? Or its name, at least? Caveats: Globals.ThisAddIn.Application.ActiveDocument.DefaultTableStyle doesn't work. Globals.ThisAddIn.Application.ActiveDocument.WordOpenXML doesn't provide the answer. Long Story: When I...
Jacek Kołodziejek
1

votes
1

answer
60

Views

VSTO: Open the calendar explorer in a new window

i found this question: Switch To Outlook Calendar using VSTO. This works quite fine, but I want to open the Calendar in a new window to not change the users current window. I could not find any information on how to do this, or if it is even possible. Thanks for any help!
Maik Fruhner
1

votes
1

answer
53

Views

MSProject Add-In to convert .mpp in .pdf with given name and date

I am developing an Add-In for MSProject 2013 and higher. I want to safe/convert the opened .mpp file into an .pdf file without having an additional dialog for the user. He just presses the button an gets an notification when everything is done. I need to save it in a spacific path and user a define...
ket0ma
1

votes
0

answer
321

Views

VSTO Excel Customization not loading in workbooks : Element not found. (Exception from HRESULT: 0x80070490)

I am working with VSTO Excel project and customizing the xltx template. First release of the project is working correctly and users created workbooks from that template. I have added new worksheet and some controls in the template and released new version of project. This is working correctly only i...
USAAZ
1

votes
1

answer
31

Views

list all tasks based on groupings

is there a way where i can list the tasks as shown if grouping is implemented? Like for example, I used Group1 where it is grouped by Text1 then Text2. Using vsto, I want to have a list where I can get the exact hierarchical of the tasks with the computed % of completion. thanks, Gilbert
Gilbert
1

votes
0

answer
80

Views

Can I use range.InsertXML in footnotes?

I have a VSTO Add-in in which I insert some formatted text into Selection.Range. Text is provided in Open XML format and is inserted to the document with InsertXML method: using (var selection = _application.Selection) { var range = selection.Range; range.Collapse(WdCollapseDirection.wdCollapseEnd);...
aurel
1

votes
2

answer
88

Views

VSTO Word post save event (with information of Cancel Save)

I know there is already a post with the same name as this but it provides a partial solution for the problem. The post is: VSTO Word post save event I'm using this class and it helped me a lot. However, when I make changes in the Word file and try to Close the application clicking in the option 'Not...
Gabriel Costa
1

votes
1

answer
38

Views

What is the recommended way to add Help to my MS Project VSTO add-in?

I can't seem to find a simple answer. Is there a recommended way to do this? I'd like to build my help files as I build out my functionality.
Eric Christoph
1

votes
0

answer
158

Views

Outlook VSTO Sending Under Shared MailBox is Sent “On Behalf Of”

There are 2 Exchange (Office 365) inbox accounts [email protected] and [email protected] From Outlook 2016 when composing a new email, I can normally select the 'From' and set it to [email protected] and the recipient gets it as [email protected] If I do it programmatically, it is going as 'Sent on Beha...
Adam
1

votes
0

answer
25

Views

VSTO Outlook 2010: customize calendar arrangment / view

I'm wondering if it is possible to program a customized calendar view (e.g. show 3 Months at once) as I find surprisingly little resources about this question.
Stefan
1

votes
0

answer
50

Views

Writing a formula into a cell include string variable

I am trying to write a formula programatically related to excel date function.My problem is, I couldn't concatenate '=' and string variable in formula bar. string frm = (yy + '- 1;' + mm + '- 0;' + dd + '- 0)').ToString(); selection.FormulaR1C1= '='+ frm; If I use another code below instead of frm...
murat turna
1

votes
1

answer
150

Views

VSTO - Excel - AutoFilter - Trying to get Date filter criteria (year, month or day) throws exception

I'm trying to get the filters of a table in order to reapply them after some modifications. Everything is ok, but the trouble begins when the filter is on a Date column. This is the way I'm doing it: for (int i = 1; i
Eric Milaneze
1

votes
1

answer
33

Views

LinkedStyle for the Word BuiltinStyles

I am extending the capability of the Word report writing from VSTO to consider different languages. Therefore, instead of using the headings like 'Heading 1' etc, I have used wdStyleHeading1 etc. I have built a function to assign the style to the heading. The problem is that the line 1 and line 2 be...
Raghu
1

votes
0

answer
203

Views

how to add custom taskpane in multiple word document

i am developing a VSTO addin for Word.it has a toggle button in the ribbon to view and hide a taskpane. I did much of the functionality but the problem is the taskpane is not added when we are working with multiple documents. It shows the taskpane only in one document, and the toggle button also aff...
Vishnu Kay Vee
1

votes
1

answer
28

Views

VSTO ClickOnce Deployment config values

I have created a VSTO Add-in in word that would read form fields and save them to a document in Local folder. During development, I added an app.config so that we can configure the output folder. Now that we want to promote it to QA and other environments. The question I have is how do we make this...
Rakesh Vasu
1

votes
1

answer
36

Views

Reload Office content Add-In from powerpoint #24

I have office web add-in added in my PowerPoint slides (multiple instances of add-in). Need some settings that will be common across all add-in instances. for that tried to use VSTO Add-In and save those in settings file of it. Now the issue is how i can pass those settings to each content add-in in...
Kunal
1

votes
1

answer
46

Views

Detect when Outlook Today View is open

I have created an addin using VSTO. I'm trying to determine when Outlook is opened or switched to the Today screen. I need to disable parts of the addin ribbon buttons when the Today view is displayed. Is there a property that I can check to determine if the Outlook Today screen is being displayed.
Rick Harris
1

votes
1

answer
72

Views

How to constrain keyclicks to digits only, before they are seen in a Windows Foms TextBox?

My application asks for a number, which should be constrained to: Positive integer Cannot have leading zeros 3-digit maximum This is what my dialog looks like I believe I found the proper way to implement most of the requirements, by using the TextChanged WinForms event. The part where I need help i...
Travis Banger
1

votes
1

answer
246

Views

Outlook Email Categorisation

I am using Outlook Interop to read and Categorize the e-mail when they arrive. This is the event I use : Outlook.Items items; items = inbox. items.ItemAdd += new Outlook.ItemsEvents_ItemAddEventHandler(items_ItemAdd); And inside Switch statement later on I have code like this : case 'Subject': mail....
brigate011
1

votes
2

answer
75

Views

word macro called from vsto

I'm trying to figure out why I cannot run a Microsoft Word macro called from a VSTO add-in written in VB. Every reference I can find says you can do this with a one-liner: Application.Run('MacroName') The macro itself is very simple...it just toggles the 'replace text as you type' setting (AutoCorre...
rimetree
1

votes
1

answer
195

Views

Focus issue with Custom Task Pane and WebBrowser Control in Outlook 2010/2016

I have Outlook Plugin (using VSTO .net) which opens HTML5 form in the custom task pane of outlook. Issue: Ctrl + A, TAB events are not working with HTML native controls like Text area after clicking on any outlook fields. For example I open meeting/email window with my form and then try to write an...
ManojP
1

votes
1

answer
83

Views

Fixing a zero GUID for a VSTO addin

I'm having a little trouble setting a real (non-zero) GUID for an installed add-in. First off, the installer works fine, and the installed add-in seems fully functional. I can also manage it in all the usual Officey ways. However, the Event Viewer reports the addin startup with a zero GUID: Name:...
Stuart Watt
1

votes
0

answer
21

Views

Icon missing when we create the presentation of individual slide using OpenXMLPowerTools

We are working on a power point add-in application. In this application we have a scenario to create individual slides of a presentation. We are using “OpenXMLPowerTools” to create individual slide presentation. But the issue is, if the presentation having any icons , then it seems that icons...
Ranish
1

votes
0

answer
19

Views

How and when to close a WPF window running on another thread in a Office VSTO addin

In excel I am showing a WPF window which is running on a new thread. There are numerous references to it in stackoverflow this is but one. The problem is that if the user after opening the WPF window immediately closes Excel, then Excel appears to hang but eventually closes the window. It appears to...
darbid
1

votes
1

answer
47

Views

Closing WPF hosted in Outlook

I'm making outlook vsto addin that launches WPF window. It works fine, but when I close the WPF window, and try to open another one, I get a Cannot create more than one System.Windows.Application instance in the same AppDomain. exception. I know that Application class is singleton, I understand exce...
machineeee
1

votes
0

answer
50

Views

How detect when a Word shape is deleted or dragged in a VSTO C# project

I'm using the command bars OnUpdate event handler to detect when a shape is selected. If a shape is selected I open an action pane to display some custom properties, which I close again when the shape is deselected. But this event does not fire for dragging or deleting and I'm not sure it's even th...
Magda
1

votes
0

answer
207

Views

Microsoft Word 2016 VSTO Add-In with Web Browser Control Issue

We are updating a legacy MS Word Add-In to run on Windows 10/MS Word 2016 from Windows 7/MS Word 2013. There were no code changes made to the solution, we simply opened the solution which was previously developed in Visual Studio 2013 in Visual Studio 2017 and updated the .Net Framework to 4.6. Th...
jazzBox
1

votes
1

answer
201

Views

Not able to install ExcelAddin.vsto file silently

I am trying to create an unattended Silent install for HP ALM CLient Add for Citrix environment. I am facing issues, when trying to suppress the 'Install' customization window, which appears when we launch Excel. Couldn't able to suppress the window. Tried to install using below command but unsucce...
Anbu

View additional questions