Все вопросы: [vsto]

222 вопросов

похожие теги:
1
голосов
1ответов
732 просмотров

VSTO in Excel: The customization does not have the required permissions to execute

At the very beginning. Created a new Excel Workbook from VS2005. Try to save it? Cannot access the .xls file. Try to run it? same error, plus the customization permissions error in the title. Where do I set the permission? EDIT I've read a few SO questions and answers around this and it al...

3
голосов
2ответов
2197 просмотров

VSTO Programmatically adding a new worksheet based on an existing one

I currently have a C# Workbook-level Office 2007 Addin that has a Worksheet added at design-time where I have added methods and properties to the Worksheet derived class. I want to be able to programatically make a new worksheet that clones, inherits or otherwise possesses the methods and event ...

1
голосов
1ответов
536 просмотров

Tab order VSTO Excel

I'm looking through some VSTO excel code and there seems to be a major wheel reinvention swtich statement in an event handler which is attached to every control (text boxes, combos etc), calling Focus() depending on the Tag property (being used in place of a tabIndex property) Is tab order alie...

5
голосов
4ответов
8084 просмотров

Is there a list of IDs for the Outlook MAPI namespace?

I'm working on an Outlook add-in and I'm looking for a complete list that relates that MAPI properties to there names that is a little less vague than this. There is plenty of documentation on how to access those properties, but I'm not having much luck finding anything that tells me what any of...

9
голосов
6ответов
44592 просмотров

C# Excel import data from CSV into Excel

How do I import data in Excel from a CSV file using C#? Actually, what I want to achieve is similar to what we do in Excel, you go to the Data tab and then select From Text option and then use the Text to columns option and select CSV and it does the magic, and all that stuff. I want to automate ...

10
голосов
14ответов
10234 просмотров

Reason not to use LINQ

Are there any good Reasons not to use LINQ in my projcts? We use .Net 3.5 and VSTO 3.0.

2
голосов
3ответов
4198 просмотров

VSTO find ContentControls of a Word Document

Is there a way to find all ContentControls of a WordDocument (including ContentControls in Headers, Footers, TextBoxes ...) using VSTO? Microsoft.Office.Tools.Word.Document.ContentContols returns only the ContentControls of the Main-Document, not the one inside the Headers/Footer.

7
голосов
2ответов
3231 просмотров

What is the difference between Office Automation, VSTO, and Open XML SDK?

What is the difference between Office Automation, VSTO, and Open XML SDK? Do we need all of them or some of them are obsolete?

1
голосов
1ответов
57 просмотров

Issue: VS2005 not working with VSTO for Office 2007

Here at work I have Visual Studio 2005 and Office 2007 installed. I'm trying to install the VSTO package to create a templated Word Document project. I installed the VSTO package via this link: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=8315654b-a5ae-4108-b7fc-1...

0
голосов
2ответов
4440 просмотров

How to create a button like New Mail in Outlook add-in?

Can anyone pls tell me how to create a button(in CommandBar) like 'New Mail' (with a dropdown list) in Outlook? When one clicks on the button it should do some action and when clicked on the down arrow mark, it should populate a list of items. I am in need of this very much. If anyone know the a...

4
голосов
2ответов
2321 просмотров

Is it possible to do Undo/Redo in Excel using C#?

My VSTO application is a C# Add-In. I would like to add some undo(Ctrl +z) and redo functionality(Ctrl +Y).

0
голосов
1ответов
639 просмотров

How to identify a formula of cell contains defined names in Excel by using VSTO?

Is there any way to identify a formula of excel cell contains defined names by using VSTO? Or is there any way to replace the defined Excel.Name in formula of a Excel cell when the name of Excel.Name is changed by using VSTO? thanks, Yst

0
голосов
1ответов
104 просмотров

Excel Interop fails when I open the Excel applicaion manually! Why?

I have a c# application that uses Microsoft.Office.Interop.Excel. The application runs for a long period of time! If I try to open Excel manually on a different worksheet from the one the c# application is processing the c# application fails with some HResult cryptic message. Is there a limitat...

0
голосов
1ответов
833 просмотров

How to add toolbar button to contact item window in Outlook?

I am developing an add-in for Outlook. One requirement is to add a toolbar button to the contact item window. Can anyone tell me how to implement it? Thanks.

33
голосов
10ответов
28254 просмотров

Installing Office Customization

Name: From: file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto The customization cannot be installed because another version is currently installed and cannot be upgraded from this location. To install this version of the customization, first use Add or Remove Programs to u...

3
голосов
1ответов
4281 просмотров

Replace MergeFields in a Word 2003 document and keep style

I've been trying to create a library to replace the MergeFields on a Word 2003 document, everything works fine, except that I lose the style applied to the field when I replace it, is there a way to keep it? This is the code I'm using to replace the fields: private void FillFields2003(string te...

2
голосов
2ответов
1874 просмотров

Cannot install .msi package silently

I have an Office 2007 add-in (developed using Visual Studio 2005 Tools for Office Second Edition) which has been packaged into an .msi file, using the Setup project in Visual Studio 2005 The problem is that when the users install the package themselves by using Next->Next->Finish then ever...

2
голосов
6ответов
1774 просмотров

Reason for VS.NET 'current breakpoint will not be hit' warning?

Trying to debug a controllers action method, and when I attach to process the debug icon goes hollow and says the 'current breakpoint will not be hit' But I am doing a response.write at that point and when the page renders it does output the test text. So that section is indeed being executed, ...

4
голосов
2ответов
1816 просмотров

VSTO: Event for Word Doc's Content/Text Changes?

Does anyone know whether it's possible to handle content changes or more precisely whether there's an event for that... one that would notify me if a document's content has been changed (ideally at what position/range etc)?

2
голосов
2ответов
1973 просмотров

VSTO merged cells

Is there any way in VSTO (/JET OLEDB or other methods of reading excel files) to tell if the data comes from a single cell or merged range of cells and get this range ?

2
голосов
3ответов
1039 просмотров

VSTO: can't open another Excel file, while first file is blocked by modal window from Add-in

We can't open another Excel file, while first file is blocked by modal window from our Add-in. Closing the dialog window unfreezes all pending file opens. Excel version is 2007. Is there a programmatic work around, that would allow Microsoft Excel 2007 to open the second file in a separate windo...

14
голосов
1ответов
4008 просмотров

Accessing a VSTO application-addin types from VBA (Excel)

We have a VSTO application-addin (not a document-addin) for Excel, and we want to expose an event to VBA code so that the VBA macro can do some action when this event fires in the addin. How can I get the VBA code to be able to subscribe to an event defined in the VSTO application-addin? I'd th...

2
голосов
3ответов
1144 просмотров

VSTO 3.0 Get/Change an excel 2007 workbook connection

I've struggling to find a way to get and change and excel 2007 workbook connection (Menu Data -> Existing Connections -> Connections on this Workbook).It's a connection (several actually) to a SQL Server and used in a pivot table. I've tried using Application.ActiveWorkbook.Connections or ...

2
голосов
2ответов
258 просмотров

Replacing DLL in Windows Installer Project

I have a Windows Installer project built for my VSTO add-in. However, I have to run one of my DLLs through an obfuscator at the end, but if I try to build the setup project with the modified DLL, it just rebuilds my original DLL and overwrites the modified one. Is there a way I can build the se...

2
голосов
1ответов
966 просмотров

Visual Studio Tools for Office (VSTO) version confusion

Can someone enlight me about the version bindings between VSTO and the targeted office version? I am using VS2008 with VSTO 3.0 to build and deploy an addin for Outlook 2003. I am totally confused about what is required on the target machine: VSTO 2005 SE runtime or VSTO 3.0 runtime? .NET Fr...

4
голосов
1ответов
1554 просмотров

How to set left margin in PowerPoint textbox using VSTO

I'm taking some user data and adding it to a PowerPoint presentation using VSTO. To get the formatting to look right, though I need to be able to set the left margin of some of the text in the textbox. There will be an initial block of text followed by another, indented block. For example (unde...

2
голосов
1ответов
2793 просмотров

VSTO Outlook integration - Outlook shutdown event for synchronization

I'm working on a VSTO Outlook 2007 add-in that basically synchronizes Outlook data with web service. There are three types of synchronization that I want to have in the app: startup sync, manual sync and sync on shutdown. The first two as simple and are already done. However I have problems find...

1
голосов
1ответов
620 просмотров

Load Outlook 2003 VSTO plugin

I have an annoying problem. I have a VSTO 2 plugin for Outlook 2003 (written with VS2005). I simply create 2 buttons that save email objects and work on emails. The problem is that the plugin, when just installed, is loaded by outlook and it works, but when I reboot the plugin is no more automat...

1
голосов
1ответов
1309 просмотров

Dynamically Customizing the Built-In Office 2007 Ribbon

I'm trying to dynamically customize the built-in Ribbon Controls on an Office2007 ribbon by adding C# objects such as RibbonTab, RibbonGroup, RibbonControl to the Ribbon. I have been unsuccessfull in disabeling any existing built-in controls, however I can add my own group. Now i'm thinking tha...

2
голосов
3ответов
3171 просмотров

Office integration (Word) - intercepting save

I am planning to implement a small in-house document management system. It must have a web GUI for managing a remote folder structure stored in a database. In these folders are word documents stored (physically as blob in a database). Whenever a user clicks on a document link, a word binary is do...