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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Attachment.PathName is always blank



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 2nd 09, 03:55 PM posted to microsoft.public.outlook.program_forms
BuddyWork
external usenet poster
 
Posts: 18
Default 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,
Ads
  #2  
Old October 2nd 09, 03:58 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default 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,



  #3  
Old October 2nd 09, 04:07 PM posted to microsoft.public.outlook.program_forms
BuddyWork
external usenet poster
 
Posts: 18
Default 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,




  #4  
Old October 2nd 09, 04:09 PM posted to microsoft.public.outlook.program_forms
BuddyWork
external usenet poster
 
Posts: 18
Default 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,




  #5  
Old October 2nd 09, 04:26 PM posted to microsoft.public.outlook.program_forms
BuddyWork
external usenet poster
 
Posts: 18
Default 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,

  #6  
Old October 2nd 09, 04:38 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default 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,






  #7  
Old October 2nd 09, 04:39 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default 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,



  #8  
Old October 2nd 09, 04:58 PM posted to microsoft.public.outlook.program_forms
BuddyWork
external usenet poster
 
Posts: 18
Default 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,

 




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
message attachment saved by Outlook.Attachment.SaveFileAs not open arcfan Add-ins for Outlook 7 May 12th 09 07:15 PM
blank attachment received Steve Outlook - General Queries 0 October 8th 07 03:07 AM
Blank email attachment of email. IT Boy Outlook - General Queries 8 July 22nd 07 02:43 PM
How to define a folder object given its pathname jimboluke Outlook and VBA 2 March 8th 06 10:07 PM
Fax blank & no attachment [email protected] Outlook - Fax Functions 3 February 22nd 06 03:54 PM


All times are GMT +1. The time now is 01:05 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.