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

Saving Attachments



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 11th 06, 08:27 PM posted to microsoft.public.outlook.program_addins
[email protected]
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 Search this Thread
Search this Thread:

Advanced Search
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 password in outlook Ali Outlook - Installation 10 January 28th 09 01:10 AM
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


All times are GMT +1. The time now is 11:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.