-
- VSTO Excel add-in only working in development machine
by Abhishek Chadha
- 14 Replies
- Last post
by Ray Saltrelli
- Hi,
I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 .
However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following installed:
1. VSTO Runtime - Shipped with VSTO 2005SE
2. Office 2007
3. .NET 2.0 Framework
-
- ThisApplication - Best Practice
by Waqar Azeem
- 3 Replies
- Last post
by Waqar Azeem
- I was just going to post that how I should store ThisApplication reference thought out my application. Meanwhile I got this idea¡ create a static member of type ThisApplication in itself i.e. partial class ThisApplication
namespace MyOutlookAddin
{
public partial class ThisApplication
{
private static ThisApplication MySelf;
public static Thi
-
- Problems with Add-In UnInstall.
by mchuc7719*
- 8 Replies
- Last post
by mchuc7719*
- Hello to all,
I followed the "Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer: Walkthroughs (Part 2 of 2)Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer: Walkthroughs (Part 2 of 2), part Walkthrough: Enhancing the Outlook Add-in Setup Project" tutorial.
I have installed success the
-
- Save as FILTERED html
by r_daneel
- 4 Replies
- Last post
by r_daneel
- Is it possible to use VSTO to save a Word file as a filtered html document Also, before the file is saved I would like to manually mark the location of each page break (info which is normally lost when saved to filtered html). Thanks in advance for your replies.
-
- Grief with ContentControlOnExitEventHandler
by Jason (Mel&
- 3 Replies
- Last post
by Jason (Mel)
- Hi My code turns an event handler for this on and off, with
public Microsoft.Office.Interop.Word.Document myDoc = Globals.ThisAddIn.Application.ActiveDocument; myDoc.ContentControlOnExit += new Microsoft.Office.Interop.Word.DocumentEvents2_ContentControlOnExitEventHandler(ContentControl_Exit); and myDoc.ContentControlOnExit -= new Microsoft.Office.Interop.Word.Document
-
- Before an Appointment item is saved, how can I get the occurrences specified by the recurrence pattern?
by kjob
- 5 Replies
- Last post
by kjob
- I am trying to create code behind a custom form in Outlook. It is a customization for the AppointmentItem form. On the custom tab we have a C# User Control. Within the control, I have a need to get all of the occurrences of the appointment specified by the recurrence pattern, if one exists. So, based on some user action on the control, I am trying to get a list of dates that the appointment will
-
- What is the right way to add Menu to Word Template?
by vitich
- 1 Replies
- Last post
by Cindy Meister
- Right now I create new menu in ThisDocument_Startup (I delete old menu in case it exists). When I create menu I use Temprorary = true, but I just found out that it doesn't matter and it will always be permanent( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1065615&SiteID=1 ). I also delete menu in ThisDocument_Shutdown.
In general it works fine, but there're a few problems:
-
- Office tool works on some machines
by guyaton
- 2 Replies
- Last post
by guyaton
- I have a Outlook plug-in installation that only works on some machines. Right now it seems to work 100% with Windows XP and Outlook 2003. However when installed on Windows XP with Outlook 2007 it seems to only work on 50% of the machines. Windows Vista with Outlook (only 1 install so far) works without any issues. When running Outlook 2007 on an XP machine, I noticed on every machine that the plu
-
- Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook._Application'
by Kulvinder
- 7 Replies
- Last post
by Andrew Cherry [MSFT]
- Hi,
I am using Outlook 2003 professional and getting the "MAPI" Namespace reference using :
Microsoft.Office.Tools.Outlook.Application.GetNamespace(String Type)
The exception which i am getting is :
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the
-
- Newly Added Document is NOT the Active Window
by pKulandrei
- 13 Replies
- Last post
by pKulandrei
- Hi everyone,
I created a add-in for Word using vsto. I got a form that show to the user and when a buttoon on that for was clicked, the add will add a new document using this.Documents.Add(<params>). The new document was successfully created but it was not the active window. The first document when I opened word was still the active window. I'm using Document.Activate() to make the ne
-
- How can I get an Excel application object
by Gastiflex
- 4 Replies
- Last post
by Gastiflex
- Hi, Why does VSTO add this line to my Excel add-in
Code Snippet
Me.Application = CType(Microsoft.Office.Tools.Excel.ExcelLocale1033Proxy.Wrap(GetType(Excel.Application), Me.Application), Excel.Application) I need to get an Excel application object. With this code, my app object is a System.Runtime.Remoting.Proxies.__TransparentProxy.
Code Snippet
Dim app As Excel.A
-
- Button Panel for both Word and PowerPoint
by karpanta
- 6 Replies
- Last post
by karpanta
- Hi, I need to develop some kind of add-in that have to interact with both Word and PowerPoint. The idea is to build a panel with some buttons (this panel can be loaded or unloaded in any document or presentation) that it is the same for Word or PowerPoint. I am not sure how to do it so I would really appreciate if any of you could give any ideas. Thank you very much!
-
- Excel SaveAs dialog - selecting a certain file type by default
by Kieron Thwaites
- 2 Replies
- Last post
by Kieron Thwaites
- Hi,
I'm trying to programatically open a SaveAs dialog and have the default file type set to CSV. Right now, the only way that I see that will accomplish this is with applicationObject.Dialogs[Microsoft.Office.Interop.Excel.XlBuiltInDialog.xlDialogSaveAs].Show(), but I can't figure out what must go into the parameter list, and I can't find any documentation that explains this. I'm using
-
- Word 2007 add-in that works like IntelliSense
by asmyatt
- 1 Replies
- Last post
by Cindy Meister
- I need to write an add-in for Word 2007 that will work like IntelliSense does. I have not been able to find any helpful information on this. Can anyone provide some insight on how I can accomplish this. Just a url, or something for me to read up on about it would be a great start. Basically what I need to do is check the word being entered against a list of words and display information about the
-
- How to duplicate a RichTextContentControl
by mathmax
- 10 Replies
- Last post
by dhysong
- Hello,
I try to duplicate a RichTextContentControl from a word 2007 document. I would like to insert the duplicated RichTextContentControl just under the original one. How can I do that
Thank you in advance for your help,
mathmax
-
- Lost my VSTO SE Excel add-in
by jk_uk2
- 5 Replies
- Last post
by McLean Schofield - MSFT
- Hi,
I'm working on a VSTO SE add-in at the moment.
When I was starting Excel I stupidly stopped the debugger, as I realised that I made a mistake.
To my horror, when I restarted the debugger, my add-in is gone. It appears in the COM add-ins list, but this doesn't seem to make a difference.
Can anyone help I presume that I need to clean up the registry or some temp files
-
- Outlook 2007
by boltnia
- 11 Replies
- Last post
by boltnia
- Hi to all! I'm interested in some question about Outlook 2007. The fact is outlook can receive and send messages in .eml-format. So, application can works with it. But if I try to open manually local file *.eml - error is generated. Can I write code to open file in .eml format Thanks.
-
- Content controls
by radiorus
- 1 Replies
- Last post
by McLean Schofield - MSFT
- I crete some content controls and type some text in my add-in : app.Selection.TypeText("Topic "); Range rng = app.ActiveDocument.Range(ref s,ref end); rng.Font.Size = 20; rng.Font.Color = WdColor.wdColorRed; text = app.Selection.ContentControls.Add(WdContentControlType.wdContentControlText, ref range); text.Title = "topic name"; text.Range.Font.Color = WdColor.wdColorBl
-
- Not Able to debug VSTO word Application
by Thekkepad
- 4 Replies
- Last post
by Andrew Cherry [MSFT]
- Hi,
I Have installed VSTO 2005 SE last week and started experimenting in that. Now I am not able to debug the word ADDIN projects. Even if i add any code in _StartUp Method It is not executing...
Any clue
Suresh
-
- How to get deleted item's info
by Atif Amin
- 6 Replies
- Last post
by Atif Amin
- hi, I m writing outlook add-in to detect the deleted items. i m notified that item is deleted but i can't get information of deleted item like which item is deleted and what was its entry id. Would anyone plz help me to find out the solution so that i may be able to get information of deleted items also. Thanx in Advance
-
- Email Address of the Current User
by Andy Ho
- 10 Replies
- Last post
by 007DeeJay
- Hi,
How can I get the Email Address of the Login User from Outlook.
The Me.Session.CurrentUser.address return a lot of additional data, what I want is just the Email Address.
Thanks.
Andy Ho
-
- Context menu customisation for the outlook word editor
by Rishab
- 8 Replies
- Last post
by ReachLee
- I am writing an add-in to Outlook 2007 using VSTO 2005 SE for which I need to add a context menu item that appears in a new mail inspector window when I right click over the body of the email.
I was able to do the same back when winword.exe was run as the default editor in outlook 2003, but now it seems that the editor is run in-proc (I tried accessing the object model through the wordeditor
-
- [Word] Runtime error on loading custom add-in
by Dennie-DeTi
- 7 Replies
- Last post
by Gus Hill
- Hello, I have a problem with loading my own add-in after I deployed the setup and installed the add-in. When I run the add-in directly out of visual studio it all works fine. However when I generate the setup.exe and use it to install the add-in it won't display in Word. When I go to the COM-addins dialog in Word I can see that it is indeed installed. When I click on it, i see the message: "N
-
- MS office automation - (AppID for PowerPoint to automate..)
by milgurung
- 5 Replies
- Last post
by Misha Shneerson - MSFT
- Hi,
Server side automation of Office is not recommended but I have to deal with it. I got the solution at this link.
http://support.microsoft.com/kb/288366/
and it provides the registry values to set for word, excel and access as
[HKEY_CLASSES_ROOT\AppID\WINWORD.EXE] "AppID"="{00020906-0000-0000-C000-000000000046}" [HKEY_CLASSES_ROOT\AppID\EXCEL.EXE] "AppID&quo
-
- how to deal with each Recurring AppointmentItem?
by fahad11
- 7 Replies
- Last post
by Sue Mosher - Outlook MVP
- hey everyone...
I want to retrieve all the appointments in a week by displaying their information
so the problem that iam facing is when i have a recurring appointment
how can i deal with each appointment in it
for example i got the same meeting in a week lets say (sat,mon,wed) so i want to display each ones data
this is what I've done (outlook 2007 C#)
Outlook. Applicati