Attachment.PathName is always blank

Status
Not open for further replies.
B

BuddyWork

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,
 
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

"BuddyWork" <BuddyWork> wrote in message

news:9A317B4E-CAFB-4D13-8E91-6FD3C1199D55@microsoft.com...
> 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,
 
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
> > >

> "BuddyWork" <BuddyWork> wrote in message
> news:9A317B4E-CAFB-4D13-8E91-6FD3C1199D55@microsoft.com...
> > 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,


>
 
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
> > >

> "BuddyWork" <BuddyWork> wrote in message
> news:9A317B4E-CAFB-4D13-8E91-6FD3C1199D55@microsoft.com...
> > 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,


>
 
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,
 
No.

Sue Mosher

"BuddyWork" <BuddyWork> wrote in message

news:B7FC4582-54F7-4EC8-ADC9-F41DA7ED6BF0@microsoft.com...
> 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
> > >> >> >
>
>> "BuddyWork" <BuddyWork> wrote in message
> > news:9A317B4E-CAFB-4D13-8E91-6FD3C1199D55@microsoft.com...
> > > 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,

>

>
>>
 
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

"BuddyWork" <BuddyWork> wrote in message

news:47475FF0-4E0F-48FB-862C-5DA8470F8633@microsoft.com...
> 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,
 
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,
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Paperclip icon shows without attachment in email under Sent folder Using Outlook 0
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
C Code to move mail with certain attachment name? Does Not work Outlook VBA and Custom Forms 3
kkqq1122 How would I add Search for attachment name Outlook VBA and Custom Forms 3
Owl Export Outlook PDF Attachment as JPG? Outlook VBA and Custom Forms 4
Timmon Remove just one attachment before AutoForward Outlook VBA and Custom Forms 0
P File Picker for attachment Outlook VBA and Custom Forms 0
D Forwarding email based on the attachment file type and specific text found on the attachment file name Outlook VBA and Custom Forms 1
N File Picker for attachment Outlook VBA and Custom Forms 2
G print attachment straight away; working script edit not working Outlook VBA and Custom Forms 0
G Save attachment run a script rule Outlook VBA and Custom Forms 0
M Autoforward just attachment OR just body. Outlook VBA and Custom Forms 0
D Create new email from the received Email Body with attachment Outlook VBA and Custom Forms 10
T vba extract data from msg file as attachment file of mail message Outlook VBA and Custom Forms 1
K Outlook Office 365 VBA download attachment Outlook VBA and Custom Forms 2
P Sending email from outlook IMAP to GMAIL where embedded images are added as attachment Using Outlook 1
S save attachment with date & time mentioned inside the file Outlook VBA and Custom Forms 0
O VBA Outlook Message Attachment - Array Index Out of Bounds Outlook VBA and Custom Forms 0
A Edit attachment Save and Reply Outlook VBA and Custom Forms 0
D Move Email with Attachment to Folder Outlook VBA and Custom Forms 3
B Outlook 2010 Opening Mail Attachment Using Outlook 2
A Warning When Opening attachment Using Outlook 7
R Limiting length of saved attachment in VBA Outlook VBA and Custom Forms 2
F Script for zip file attachment Outlook VBA and Custom Forms 1
P Outlook 2013 Word Share doc as Email Attachment now brings up Eudora. Using Outlook 1
L Attachment saving and tracking - PLEASE help! Outlook VBA and Custom Forms 5
H Outlook 2003 find by "has attachment" Using Outlook 1
9 Outlook 2016 How to save an Outlook attachment to a specific folder then delete the email it came from? Using Outlook 1
J Add an Attachment Using an Array and Match first 17 Letters to Matching Template .oft to Send eMail Outlook VBA and Custom Forms 2
geofferyh Cannot get Macro to SAVE more than one message attachment??? Outlook VBA and Custom Forms 5
geofferyh How to change the Attachment File Name? Outlook VBA and Custom Forms 1
geofferyh Outlook 2010 How to Copy Outlook Attachment to a Specific Folder? Outlook VBA and Custom Forms 3
D Body text of email disappears when I scan an attachment from printer to email Using Outlook 1
J Help Please!!! Outlook 2016 - VBA Macro for replying with attachment in meeting invite Outlook VBA and Custom Forms 9
W Save Outlook attachment in network folder and rename to current date and time Outlook VBA and Custom Forms 18
D Autosave Attachment and Rename Outlook VBA and Custom Forms 1
N Macro for attachment saved and combine Outlook VBA and Custom Forms 1
Andrew Quirl Open attachment, manipulate without add-on program? Outlook VBA and Custom Forms 5
V VB script code to save a specific email attachment from a given email Outlook VBA and Custom Forms 14
Commodore Attachment icon when there is no attachment Using Outlook 3
V Saving attachment from outlook in My Documents Outlook VBA and Custom Forms 14
N automatic response with an attachment based on the subject line Outlook VBA and Custom Forms 1
J Auto Forward - Include Attachment and change Subject depending on original sender Outlook VBA and Custom Forms 3
M Search for attachment filename Using Outlook 0
E Open olNoteItem Attachment Outlook VBA and Custom Forms 6
Vijay Reply all by attachment name Using Outlook 10
Michael R Belleville Making an Attachment Name the Message Subject Using Outlook 2
N Paste content to Excel when .txt file (attachment) is opened Outlook VBA and Custom Forms 1
P Outlook Randomly Not attaching (attachment file) Using Outlook 0
S VBA to search a keyword in attachment and move to a folder Outlook VBA and Custom Forms 0

Similar threads

Back
Top