![]() |
Attachment.PathName is always blank
Hello,
I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
Attachment.PathName is always blank
That's perfectly normal if the attachment is contained in the item. There is
no external path in that case. The PathName will always be blank unless the attachment is actually a shortcut to an external path. If you need to make the attachment available to another component, call its SaveAsFile method to save it to a local or network folder. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "BuddyWork" wrote in message ... Hello, I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
Attachment.PathName is always blank
Thank you, that is what I thought but just wanted to double check.
"Sue Mosher [MVP]" wrote: That's perfectly normal if the attachment is contained in the item. There is no external path in that case. The PathName will always be blank unless the attachment is actually a shortcut to an external path. If you need to make the attachment available to another component, call its SaveAsFile method to save it to a local or network folder. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "BuddyWork" wrote in message ... Hello, I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
Attachment.PathName is always blank
Is there away in getting the path and name before the file is actually
attached? I am using Outlook 2003. "Sue Mosher [MVP]" wrote: That's perfectly normal if the attachment is contained in the item. There is no external path in that case. The PathName will always be blank unless the attachment is actually a shortcut to an external path. If you need to make the attachment available to another component, call its SaveAsFile method to save it to a local or network folder. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "BuddyWork" wrote in message ... Hello, I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
Attachment.PathName is always blank
I've found out that the files are stored in the 'Outlook Secure Temporary'
http://support.microsoft.com/default.aspx/kb/817878 How do I get this directory witin Outlook Forms? "BuddyWork" wrote: Hello, I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
Attachment.PathName is always blank
No.
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "BuddyWork" wrote in message ... Is there away in getting the path and name before the file is actually attached? I am using Outlook 2003. "Sue Mosher [MVP]" wrote: That's perfectly normal if the attachment is contained in the item. There is no external path in that case. The PathName will always be blank unless the attachment is actually a shortcut to an external path. If you need to make the attachment available to another component, call its SaveAsFile method to save it to a local or network folder. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "BuddyWork" wrote in message ... Hello, I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
Attachment.PathName is always blank
That folder really isn't useful for your scenario, because (a) unless an
explicit location is set in the registry (which is rare), there's no guarantee that you'll be able to find it and (b) the file you want may no longer be stored in this temporary storage location. You should use SaveAsFile instead to ensure you have control over the file and the location where it's made available to the other component. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "BuddyWork" wrote in message ... I've found out that the files are stored in the 'Outlook Secure Temporary' http://support.microsoft.com/default.aspx/kb/817878 How do I get this directory witin Outlook Forms? "BuddyWork" wrote: Hello, I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
Attachment.PathName is always blank
Wrote code to read the registry.
"BuddyWork" wrote: I've found out that the files are stored in the 'Outlook Secure Temporary' http://support.microsoft.com/default.aspx/kb/817878 How do I get this directory witin Outlook Forms? "BuddyWork" wrote: Hello, I need the location of where the attach file is located because I need to pass the path and name to another component which will read the file and then send it to SharePoint. Any idea? Thanks, |
All times are GMT +1. The time now is 09:53 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-2006 OutlookBanter.com