outlook

C#.NET start Outlook..?

Can I make C#.NET start outlook in the code? In VB6 we use object 'Outlook.Application' and write:' Set oOutlook = CreateObject("Outlook.Application") Set oNameSpace = oOutlook.GetNamespace("MAPI") Set oInbox = oNameSpace.Folders(1) 'Set oInbox = oInbox.Folders("Inbox") oInbox.Display 'oOutlook.Quit 'Close All Outlook copies Co...

C# Outlook 2007 - How do I access attachment contents directly from my addin?

I'm trying to parse text-based file attachments (txt, doc, etc...). However, I can't seem to get to the binary information itself. I can get the filename and I can save the file out to some temporary folder and open it from there, but that seems messy. Is there any way to access the content of an attachment without saving it, reading ...

C# opening up a blank email with an attachment using Exchange

Hey there I'm new to the world of C# programming but was hoping someone could help me out. I'm trying to use C# to open up a blank email in Outlook with a specified attachment. In other words, open the email, the TO: and SUBJECT: fields are blank but the email has an attachment that is specified in my code. I want my user to be able t...

Windows Service is not working in Outlook 2003/2007

Hi, Currently, I am working on windows service using outlook 2003 and 2007. The winform able connect and read the mails with local outlook 2003/2007. But the window service is not all invoking the outlook 2003/2007 module. Could you please help me, you have any idea about this. ...

Is there a way to replace the Reading Pane with a VSTO CustomTaskBar in Outlook 2007?

I have a custom task pane I've made in VSTO for Outlook 2007, but it needs a fair amount of screen real estate to be functional. I'd like to just take over the place of the Reading Pane, as it won't really be needed when this addon is active. It's also a really great spot since this addon relies on drag-and-drop from mail folders to this...

Problem Getting Outlook 2007 Running VBA Script

I'm trying to get Outlook to save the attachment in a daily email to a folder where I can have a file system watcher ready to parse and analyze the attachment (it's the report of a data integrity checker). I've set up a Rule that is supposed to run a VBA script, but it just doesn't run as far as I can tell. I've verified in VB6 that th...

Outlook Forms

I was playing around with Outlook forms (through Tools -> Forms -> Choose Form), and now all my existing Sent Items look like Contacts with actual messages embedded into the Notes field; I have no idea how that happened! How can I fix it??? Thanks!!! ...

How do I create a custom Outlook Item?

I understand that Outlook has set items, i.e. Mail, Task, Calendar, Notes, etcetera. How can you create a custom Item that Outlook will recognize as the others? I know that when you add the Business Contact Manager it creates Items like "Opportunities" Can you override an Item, or inherit an Item and alter/add properties and methods? ...

Pasting diff output into Microsoft Outlook with syntax highlighting

How can I copy diff output (diff old-version.cpp new-version.cpp) into an Outlook email so I can send it to other people with syntax highlighting? I'd either like to pipe diff output to a program that will copy it to the clipboard with formatting (p4 diff file.cpp | rtfpatch) or have a plugin for Outlook that lets me select some text, c...

Programmatically set synchronization profile on Outlook 2003

I know that Outlook does not provide any way to configure synchronization profile in the famous MAPI. It only provide API to syncStart/SyncEnd a defined sync profile, with one exception call "Application Folders" I am now using PRF to setup the Outlook, but it is difficult to read and I cannot find a reference to do an advance customiza...

How do you add a database file to a ClickOnce deployed C# Outlook add-in?

I am trying to set up a click-once deployment for an Outlook add-in in C# that uses a CE database. I found this site: http://msdn.microsoft.com/en-us/library/6fehc36e.aspx which purports to be a method to add any file to a click-once app. However, when I follow the directions which say to add the database file to the appropriate applic...

Outlook: How do I POST the selected message to a web server using VBA?

Goal: To have a button in the Outlook toolbar which, when pressed, sends the current message in it's entirety (perhaps as a .msg file) via post to a URL. Some kind of browser window must be opened in the process so the user can enter login details for the application at the URL (unless I can get around this somehow, thoughts?). I have c...

VSTO CommandBarButton position

I'm writing a VSTO add-in to add a button the Standard toolbar for all new MailItems in Outlook 2003. I've got it mostly finished, but I can't see to work out how to set the button's position on the taskbar - ideally I'd like to place it right next to the Send button. Here's the code I have so far. Private Sub colInsp_NewInspector(By...

Create a Email message in .NET

I want to be able to create an email message with an attachment, but not send it. The email should open in Outlook where the user can send himself. I have been playing around with Mailto: command in order to open a new mail message, however, Outlook client doesn't seem to support adding attachments using the Mailto: command. I do not w...

Outlook Form

Hello, i had to modify an existing form, which i did and saved it on my desktop as .oft file. My problem is that when ever i send this form i have an old signature that shows. for instance, if i double click the .oft file i see the body with that old signature and then my newer one below it. I would like to delete that old signature tha...

Where does Outlook store which PST files are mounted?

I'd like to programmatically add a PST file to a person's Outlook profile. I found some code here: http://www.eggheadcafe.com/community/aspnet/65/10030171/try-this-code.aspx While that does the trick, it still leaves the question - "Where does outlook keep this list of mounted PST files?" Is it in the registry? A config file somewhere?...

Where does outlook store tasks & calendar information?

where are does outlook store tasks & calendar information? will it be in .pst file itself ...

Want to enumerate Outlook folders

I'm looking for some code (C# or VB.NET preferred) to iterate through all folders in an Outlook mailbox and return the names of those folders. I'm not looking to pop up the Outlook folder dialog, but rather to return the folder names in a given mailbox from outside Outlook. Thanks ...

How to find when the loop of appointment item change/add event has completed in Outlook add-in

Hi, I have created an addin in outlook 2007. I want to show a form to a user to take a decision whenever a new appointment is created or any existing appointment is changed. This works fine . However when I have two calendars say Test and actual calendar and I go to View All appointment in test calendar, copy say around 20 to 30 appoin...

Please explain what an outlook add-in is

Can someone give me a quick explanation of when I would use Visual Studio 2008 Outlook 2007 Ad-In project type? and how would that compare to developing a bunch of outlook macros directly in outlook? Basically, I want to have some sort of application read email (with attachments) from a pop3 email box, do some filtering/editing/validati...