A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: ,

Saving Attachments





 
 
Thread Tools Display Modes
  #1  
Old January 11th 06, 08:27 PM posted to microsoft.public.outlook.program_addins
christie.sorenson@gmail.com
external usenet poster
 
Posts: 1
Default Saving Attachments

Hi,

I have an addin written in C#. If the user wants, I try to save the
attachments. This is the code I use:

public void
uploadattachements(Microsoft.Office.Interop.Outloo k.Attachment pattach)
{
string temppath = Path.GetTempPath();
string saveto = temppath + pattach.FileName;
pattach.SaveAsFile(saveto);

...
}

This does work 90% of the time. However, on occasion, the user gets an
error message that says:

"Cannot save the attachment. You don't have appropriate permission to
perform this operation."

Any ideas of why this happens?

Thanks,
Christie

Ads
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Contacts To CD Jim Outlook - Using Contacts 3 March 3rd 06 02:54 AM
Saving email 1970 Internet Inventor Outlook - Installation 1 February 21st 06 10:36 PM
saving calendar as web Lesslag Outlook - Calandaring 0 February 8th 06 01:33 AM
saving pictures from e-mails Royalscotty Outlook - General Queries 3 January 31st 06 04:48 PM
saving password in outlook Ali Outlook - Installation 2 January 24th 06 03:14 PM


All times are GMT +1. The time now is 10:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Gas Suppliers - Mortgage Calculator - Cadillac - Mortgage Loans - Secured Loans