Question1:
How to access windows form and its controls on VSTO excel using C#?
Question2:
On Execution of VSTO Excel workbook application, I want total no. of active columns when the user paste the data.
Suppose User may paste 5 column data or 10 column data. Through code i want to figure out the total no. of columns(Also Total no. of ...
I have an excel workbook vsto solution that needs to generate a pdf copy of one of its sheets as output.
I have a license for abcdpdf .net and tried outputting to html, then using abcpdf to convert the html to pdf, but the excel html markup tries to emulate excel with all 4 worksheets with horrible markup. It also messes up the colors ...
I have the following requirements
I have relational content stored in a SQL Server 2005 database.
I want to retrieve this data, transform it and display it in an Excel 2007 document.
I would like this to be pulled from within Excel at the click of a button.
As far as I can tell I have the following options...
Create a view in...
I have a VSTO Excel workbook that functions correctly in test. I can deploy the package (publish the solution) but when I distribute it my users are unable to install it. Any idea, any way to ensure that all necessary install files follow the package?
...
I've got this weird crashing happening when creating a C# Word 2007 Template Project in Visual Studio 2008. The IDE tells me that it's creating the project (it does create the solution and C# vsproj as well as the dotx and cs files). Then the IDE just crashes - no errors, messages, etc. When I try devenv /SafeMode it still doesn't work. ...
Hi!
I am developing a template based addin for Word 2003 which allows the user to drag and drop elements from a listbox into the word document. Unfortunately I'm getting a really strange behaviour when trying to drop elements in the document's header.
Open the template and type something in the header
Close the header and insert some ...
In order not to pollute my projects with unit tests, I like to create a separate project for my unit tests; I add a reference to the project under test in the unit tests project. However, this isn't working that well with my VSTO excel add-in projects: when I create a separate unit test project and go to Add Reference > Projects, there i...
I want to make the first cell(Column - A; Row -0) is to be focused or selected always whenever i execute VSTO Excel Workbook App.
Please help me through code
...
Does Visual Studio Tools for Office require Office to be installed in order to work with excel files?
...
I have a certificate issued by a CA on our intranet (it's a V3 sha1 pfx file).
When I use this in the signing part of my clickonce (vsto addin) project, I get the error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.Office2007.targets(250,9): error MSB3482: An error occurred ...
Hello there,
I'm hoping someone could help me with a quick point in the right direction. ALL I NEED is the Outlook folder browser dialog call. I am developing some plugins for Outlook using C# and this is a crucial part for both plugins. Hopefully, it is like a standard DialogResult that passes back folder information (selected folder) ...
I built a Visual Studio 2008 setup Project wich depends on .NET 3.5. I added Prerequisites like: .NET 3.5, Microsoft office interoperability, VS tools for office System 3.0 Run time, .etc. After that Selected "Download Prerequisite from Same location as my application" in Specify install location for Prerequisite. I Built the setup and f...
An add-in we make is causing the above problem on a Windows 2003 server, without any obvious cause. Both Word and the add-in appear to work correctly yet the message comes up and Word wants to disable the add-in. I have run with VSTO_SUPPRESSDISPLAYALERTS=0 and no messages come up. On my machine (XP) the problem does not occur.
Any sug...
In a VSTO add-in I'm developing, I need to execute a method with a specific delay. The tricky part is that the method may take anywhere from 0.1 sec to 1 sec to execute. I'm currently using a System.Timers.Timer like this:
private Timer tmrRecalc = new Timer();
// tmrRecalc.Interval = 500 milliseconds
private void tmrRecal...
I'm trying to set the Calculation property on an OLAP PivotField with VSTO 3.0. For example:
pivotField.Calculation = XlPivotFieldCalculation.PercentOf;
If I do the above, the value I assign does not stay (Excel appears to revert the change). I suspect the reason is that the BaseField property of the PivotField also needs to be popu...
How to focus a cell in Excel VSTO using C#?
How to select first cell using C# in VSTO?
Please help with code...
...
Hi!
I'm developing an outlook 2003 add-in. Until now I used only winforms to display one form, but today I've added a WPF window for more complex stuff. DUe to the WPF window, a COM exception is being thrown when outlook shuts down.
Does anybody know why? I need to start a separate thread for the WPF window in single apartment state.
...
I am writing C# with VSTO in Visual Studio 2008 in order to create an add-in for Office 2007.
After I have defined a custom ribbon tab using XML, how do I obtain references to the various controls in the Ribbon? I would like to be able to do things like programatically manipulate the content of an EditBox.
...
Hello all,
I am working on an Excel 2007 VSTO plugin that is throwing COM exceptions on the client but not when debugging on my development machine.
What the plugin does is capture Excel's Startup event, define a specialized style, then add an event handler to the SheetChange event. Anytime a value is changed in the sheet, the cell is...
I want to include/embed an Excel worksheet with a predefined layout in an Excel Add-in, but I cannot add a project item "Workbook" to my VSTO project nor can I add a reference to a "Excel Workbook" project. So how can I do this?
My aim is to build an Excel Add-in which adds a new worksheet to an existing workbook (which is a download fr...