PC Review


Reply
Thread Tools Rate Thread

Attachment.PathName is always blank

 
 
BuddyWork
Guest
Posts: n/a
 
      2nd Oct 2009
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,
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      2nd Oct 2009
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" <(E-Mail Removed)> wrote in message
news:9A317B4E-CAFB-4D13-8E91-(E-Mail Removed)...
> 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,



 
Reply With Quote
 
BuddyWork
Guest
Posts: n/a
 
      2nd Oct 2009
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" <(E-Mail Removed)> wrote in message
> news:9A317B4E-CAFB-4D13-8E91-(E-Mail Removed)...
> > 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,

>
>
>

 
Reply With Quote
 
BuddyWork
Guest
Posts: n/a
 
      2nd Oct 2009
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" <(E-Mail Removed)> wrote in message
> news:9A317B4E-CAFB-4D13-8E91-(E-Mail Removed)...
> > 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,

>
>
>

 
Reply With Quote
 
BuddyWork
Guest
Posts: n/a
 
      2nd Oct 2009
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,

 
Reply With Quote
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      2nd Oct 2009
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" <(E-Mail Removed)> wrote in message
news:B7FC4582-54F7-4EC8-ADC9-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:9A317B4E-CAFB-4D13-8E91-(E-Mail Removed)...
>> > 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,

>>
>>
>>



 
Reply With Quote
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      2nd Oct 2009
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" <(E-Mail Removed)> wrote in message
news:47475FF0-4E0F-48FB-862C-(E-Mail Removed)...
> 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,



 
Reply With Quote
 
BuddyWork
Guest
Posts: n/a
 
      2nd Oct 2009
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,

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank Report as Attachment Melynda E. Microsoft Access 1 2nd Oct 2008 09:06 PM
blank attachment received Steve Microsoft Outlook Discussion 3 9th Oct 2007 01:05 PM
Fax blank & no attachment brian.synnott@rochfordbrady.ie Microsoft Outlook Fax 3 22nd Feb 2006 03:54 PM
blank attachment shows up =?Utf-8?B?SmFzb25D?= Microsoft Outlook Discussion 0 2nd Nov 2004 04:39 PM
LoadPicture Pathname or no Pathname Philipp Schramek Microsoft Excel Programming 1 8th Jul 2003 03:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.