Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / March 2007

Tip: Looking for answers? Try searching our database.

VSTO and Outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HockeyFan - 09 Mar 2007 18:33 GMT
I'm writing an add-in for Outlook, but I'm not sure this is the way to
go.  I want to access a public folder and move the documents over to
SharePoint.  I've already gotten the code for SharePoint to work.  I
could use functionality out of the box, but we're on Exchange 5.5,
which doesn't support this, so I'm having to write code to do it.

Anyway, I originally looked into just querying Exchange and doing it,
but there was one gotcha after another, so I decided to do it inside
an Outlook add-in.  However, I only want one instance doing the work.
If there are 2 or 3 people that'll have this add-in, I'd only like one
of them doing the work.

Maybe this is as simple as putting a button on Outlook that
essentially says I'll do the work and sets a flag; but if the others
don't hit the button, they don't.  I'm going to have a thread that
wakes up every 15 minutes and does the processing it needs.  I could
check the flag to see if it's set, and if not, let it just go back to
sleep.

Is there a better way to acheive this functionality?
Ken Slovak - [MVP - Outlook] - 09 Mar 2007 23:25 GMT
You can make it work by having each addin check something that's available
to all and setting a flag true on a first one wins setup. Then clear the
flag when the addin terminates.

I never like sleeping Outlook threads, why not set a timer to run the code
in the addin every 15 minutes, or just check the system time/date?

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I'm writing an add-in for Outlook, but I'm not sure this is the way to
> go.  I want to access a public folder and move the documents over to
[quoted text clipped - 16 lines]
>
> Is there a better way to acheive this functionality?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.