add-in

Why does my VSTO Outlook Add-In hang on first run?

I've written this little MS Outlook 2003 VSTO Add-In using C# and Visual Studio 2008. It is meant to check each Mail Item being sent for the word "attach" in the body and if found, then check the number of attachments. If that number is zero, then ask the user if they really mean to send the message. It's supposed to work like the Gmail ...

How to read only new content in VSTO Outlook MailItem body?

I've written a little C# VSTO add-in for Outlook 2003 that reads the body of emails as they are being sent, looking for certain words. It's working right now to do this: if (currentItem.Body.Contains("text to search for")) ... but that checks the entire email body, not just the new message being sent. Is there anyway to have Outlook...

How to get max split length of Microsoft Word Table Cell?

I'm using VSTO to automate the word Processor. code behind C#, word 2003 Addin I notice that if I keep the font size to 11 I can split a Word Table Cell into 11 rows, but if I increase the font size it can be split into 25 rows. Is there a way on which I can get the max split size of particular cell before executing split on it. ...

How can I write XML from PowerPoint VBA?

Hello! I have another question. I need to develop a PowerPoint add-in (for 2003 and 2007 versions) that will be installed on some users computers. It needs to track some of the things they do when they give presentations and then send me the results. These will be on people's computers that are not under adminstration control (e.g. vendo...

Proper alternative for the unreliable Search and Replace of Visual Studio?

Today I was actually wondering why I've stuck with it for so many years without actively complaining about it. Doing a "search & replace in all files and folders of a solution" is something I quite regularly need to do, esp. when refactoring tools fail me. Unfortunately, "all folders and files" means "some projects and some other files"....

Add-in framework for .NET application

Hi, Could you please give me some tips/web site regarding a software architecture to allow a .Net application to be ready for add-in (allow third partners to develop add-in to plug on top of application) Regards ...

how to load add-in ?

I have one silly qus. i created one shared add-in in c#.net. This add-in is working fine. now i want this add-in is load again n again when any office application is opened. For e.g. when i open any MS word document then add-in is load for that and if after that i opened another MS word document without closing previously opened document...

how to Add-in load again n again for every instance of an application?

I have one qus. i created one shared add-in in c#.net. This add-in is working fine. now i want this add-in is load again n again when any office application is opened. For e.g. when i open any MS word document then add-in is load for that and if after that i opened another MS word document without closing previously opened document then ...

How to find the name of multiple files opened on system by unique id?

I want to know about the name of all currently opened MS-Word file by its unique id. I found unique id for one file but when I gave its destination path in code. My requirement is that when any user open Word file then the unique id of this file is passed into my code and through this code the name of this file is stored into database (...

C# How to get the send of behalf email address in outlook add-in

Hi, I'm trying to get the sender email address from email that is send using another email address. The sender as shows in outlook is [email protected] on behalf of User Name [[email protected]]. The MAPI object has a method SentOnBehalfOfName that returns "User Name" but not the email address. Does anyone know how to rec...

How to display custom info bar in outlook 2007 message window?

Hi, I want to display a custom info bar in my outlook message. Something like the screenshots here: http://www.sendshield.com/product/solution.php# I have seen outlook form regions, and I dont think its a form region. If it is, then I am in trouble, as the only way I think to do is, and I may be wrong, is to use Replace type, in whic...

How to create an IE8 add-on that adds an X-Forwarded-For header

I have several users coming from different places into a terminal server and browsing my site from the server. The problem is that i need to log what ip-address the user is actually coming from, not the ip for terminal server. I have full control over the terminal-server so I was thinking that some sort of add-on to IE8 on the server cou...

Save message properties only locally (Outlook)

How can an Outlook add-in set a MAPI property (for example, the body content) on a message, but only have it saved in the local cache (and not sent back to the exchange server)? I've seen this done with a few encryption add-ins. I'm open to using pretty much any API that could do the trick. Thanks! ...

Differentiating between a Compose Inspector and a Read Inspector

Hi, Is there a way to tell if the current inspector window, in Outlook 2007, is a Read window, or a Compose window? I know we can capture events, and set flags on it, but I dont want to capture New/Reply/Forward events. Is there a way to tell this from the Inspector object? Any property? Any MAPI property? A pointer in the right dire...

Vertical lines for things like "if statements" in Visual Studio 2008?

Is there an add-on or setting that can add vertical lines that link things like "if statements" in Visual Studio 2008? Thanks ...

Facing one Issue (Outlook), can anyone help

Hi I'm facing one issue while writing Office Outlook 2007 Add-In, I'm accessing the email contents of email currently being sent by capturing Send event. Everything works fine but when accessing the subject/body of the email through Outlook.MailItem object (in C#), it prompts a dialog box to allow/deny this program to access. Can anyone...

How do I see contents of filesystem directories in Visual Studio Solution Explorer?

We have some files (config, static files, that sort of thing) in our codebase that are kept in the same filesystem tree as our codebase, but are not part of projects (ie, not underneath a project's tree). We're after a way of easily managing these from within the IDE. I dimly recall there being a Visual Studio addin that lets you do so...

How to create a Sub in VBA that is executed when its correspondent Add-In is loaded?

I have a subroutine in VBA that is executed when we open a PowerPoint presentation but I want to execute that Sub when an Add-in is loaded instead. How can I do that? ...

DSOFramer.ocx Hosting word documents in 64 bit Windows Forms

It looks like the DSOFramer.ocx component is not available for download anymore from MSDN as described here. Also the DSOFramer component is a 32 bit component. Given this, i have 2 questions: Is there any other alternative for hosting a word document in a Windows Form apart from using the DSOFramer.ocx component? If i move to Windows ...

How can my visual studio addin detect compiler errors before building in the same manner as "Remove and Sort Usings"?

I'm making a refactoring tool that automates a few of the more trivial code styling things dealing with StyleCop. One of the things I'd like my add-in to be able to do (as an optional feature the developer can turn on/off) is automatically call the "Organize Usings -> Remove and Sort" functionality. This is a simple macro call. Howeve...