message attachment saved by Outlook.Attachment.SaveFileAs not open

Status
Not open for further replies.
Y

YXJjZmFu

Team,

I use Outlook 2003 and in my add-in I save attachments in a share folder

(UNC). I don't see any issue while writing in to the shared folder but when I

attempt to read, the message does not open. I don't have google desktop

installed on my machine. Is there any resolution for this problem?

Regards,

Selvam.
 
K

Ken Slovak - [MVP - Outlook]

Attempt to read it in code or in the user interface?

Are you saving the attachments as the correct type of files?

"arcfan" <arcfan> wrote in message

news:D69A0201-D546-4E61-A2F9-093F88C1C2D6@microsoft.com...
> Team,

> I use Outlook 2003 and in my add-in I save attachments in a share folder
> (UNC). I don't see any issue while writing in to the shared folder but
> when I
> attempt to read, the message does not open. I don't have google desktop
> installed on my machine. Is there any resolution for this problem?

> Regards,
> Selvam.
>
 
Y

YXJjZmFu

Re: message attachment saved by Outlook.Attachment.SaveFileAs not

I'm trying to open the saved item manually using outlook 2007/2003. Just to

give a correct context, the user tries to open the item is not the owner of

the message... and the attachment gets stored in a remote share on network.

I think you mean the file extension by referring "the correct file

types?"... If so, yes. If not, I don't know how to set correct file type. OL

2003 object model does not have message type as a parameter in the SaveFileAs

method.

Method Signature

===========

Outlook.Attachment.SaveFileAs string

At the same time I don't have any issue with other files like images,

documents...

Regards,

Selvam.
wrote:


> Attempt to read it in code or in the user interface?

> Are you saving the attachments as the correct type of files?

> >

>

> "arcfan" <arcfan> wrote in message
> news:D69A0201-D546-4E61-A2F9-093F88C1C2D6@microsoft.com...
> > Team,
> > I use Outlook 2003 and in my add-in I save attachments in a share folder
> > (UNC). I don't see any issue while writing in to the shared folder but
> > when I
> > attempt to read, the message does not open. I don't have google desktop
> > installed on my machine. Is there any resolution for this problem?
> > Regards,
> > Selvam.
> >


>
 
K

Ken Slovak - [MVP - Outlook]

Re: message attachment saved by Outlook.Attachment.SaveFileAs not

What types of items are you having problems with, if not with images or

documents?

What happens if you go to the files in Windows Explorer and double-click on

it?

Please provide all the relevant information you have.

What do you mean by "I'm trying to open the saved item manually using

outlook 2007/2003"? How exactly are you trying to do that?

"arcfan" <arcfan> wrote in message

news:DB7EB66D-2A01-4889-888D-A5BCAC919DF4@microsoft.com...
> I'm trying to open the saved item manually using outlook 2007/2003. Just
> to
> give a correct context, the user tries to open the item is not the owner
> of
> the message... and the attachment gets stored in a remote share on
> network.

> I think you mean the file extension by referring "the correct file
> types?"... If so, yes. If not, I don't know how to set correct file type.
> OL
> 2003 object model does not have message type as a parameter in the
> SaveFileAs
> method.

> Method Signature
> ===========
> Outlook.Attachment.SaveFileAs string

> At the same time I don't have any issue with other files like images,
> documents...

> Regards,
> Selvam.
 
Y

YXJjZmFu

Re: message attachment saved by Outlook.Attachment.SaveFileAs not

Ken,

Thanks for great response and follow-up.

Only with embedded mail item (message) as attachments thats where I have

problem with. That too not while saving the attachment (embedded mail

item/Message) in to the shared folder...

Only when opening the saved item... I use .msg extension for the embedded

mail item types and in explorer it showed as email message type files.

User double clicks on the item to open it up in outlook. User may use OL

2003 or OL 2007.

Please let me know if I can provide any other details.

Regards,

Selvam.
wrote:


> What types of items are you having problems with, if not with images or
> documents?

> What happens if you go to the files in Windows Explorer and double-click on
> it?

> Please provide all the relevant information you have.

> What do you mean by "I'm trying to open the saved item manually using
> outlook 2007/2003"? How exactly are you trying to do that?

> >

>

> "arcfan" <arcfan> wrote in message
> news:DB7EB66D-2A01-4889-888D-A5BCAC919DF4@microsoft.com...
> > I'm trying to open the saved item manually using outlook 2007/2003. Just
> > to
> > give a correct context, the user tries to open the item is not the owner
> > of
> > the message... and the attachment gets stored in a remote share on
> > network.
> > I think you mean the file extension by referring "the correct file
> > types?"... If so, yes. If not, I don't know how to set correct file type.
> > OL
> > 2003 object model does not have message type as a parameter in the
> > SaveFileAs
> > method.
> > Method Signature
> > ===========
> > Outlook.Attachment.SaveFileAs string
> > At the same time I don't have any issue with other files like images,
> > documents...
> > Regards,
> > Selvam.


>
 
K

Ken Slovak - [MVP - Outlook]

Re: message attachment saved by Outlook.Attachment.SaveFileAs not

Are you sure that those embedded attachments are actually Outlook objects,

and not images or something else? How are you testing for that?

To be clear, if you find that MSG file in Windows Explorer and double-click

on it does it open as an Outlook item? Does it open at all?

"arcfan" <arcfan> wrote in message

news:7E96D7B7-9D9A-4787-80FB-C431DA3DDC04@microsoft.com...
> Ken,

> Thanks for great response and follow-up.

> Only with embedded mail item (message) as attachments thats where I have
> problem with. That too not while saving the attachment (embedded mail
> item/Message) in to the shared folder...

> Only when opening the saved item... I use .msg extension for the embedded
> mail item types and in explorer it showed as email message type files.

> User double clicks on the item to open it up in outlook. User may use OL
> 2003 or OL 2007.

> Please let me know if I can provide any other details.

> Regards,
> Selvam.
 
Y

YXJjZmFu

Re: message attachment saved by Outlook.Attachment.SaveFileAs not

Ken,

I really don't care about the attachment type. I save all attachment items

going through in for each and save them in shared folder (UNC).

The way how I test it, I explore the UNC path and see the items I saved

(doc, xls, jpeg, .... and .msg too). When I double on any item but .msg it

opens perfectly in a corresponding windows extension mapped application (.doc

in word, .xls in Excel...)

TO answer your question: "does it open as an Outlook item? Does it open at

all?"

Yes system recognize the item as outlook item and attempt to open the item

with outlook but fails with the following error message.

When I double click on .msg (I have OL 2007. OL 2007 was not launched when I

attempt to open the saved embedded message items) and I get the following..

-------------------------
Microsoft Office Outlook

-------------------------
Cannot start Microsoft Office Outlook. Cannot read the item.

-------------------------
OK

-------------------------
If I had OL 2007 launched already and double click on the saved embedded

message then I get the following error

-------------------------
Microsoft Office Outlook

-------------------------
Cannot read the item.

-------------------------
OK

-------------------------
I just used 2003 Outlook Object Model and saved the attachment. Why I'm not

able to open the .msg attachments? I can live with temporary solution for

some time. All I want to do is some way to see the save email item properties

and see what it is... I tried OutlookSpy and that did not help eiether.

I really don't find any documentation about this and badly need help from

experts like you... Please help.

Regards,

Selvam.
wrote:


> Are you sure that those embedded attachments are actually Outlook objects,
> and not images or something else? How are you testing for that?

> To be clear, if you find that MSG file in Windows Explorer and double-click
> on it does it open as an Outlook item? Does it open at all?

> >

>

> "arcfan" <arcfan> wrote in message
> news:7E96D7B7-9D9A-4787-80FB-C431DA3DDC04@microsoft.com...
> > Ken,
> > Thanks for great response and follow-up.
> > Only with embedded mail item (message) as attachments thats where I have
> > problem with. That too not while saving the attachment (embedded mail
> > item/Message) in to the shared folder...
> > Only when opening the saved item... I use .msg extension for the embedded
> > mail item types and in explorer it showed as email message type files.
> > User double clicks on the item to open it up in outlook. User may use OL
> > 2003 or OL 2007.
> > Please let me know if I can provide any other details.
> > Regards,
> > Selvam.


>
 
K

Ken Slovak - [MVP - Outlook]

Re: message attachment saved by Outlook.Attachment.SaveFileAs not

I'm interested in the attachment type because if you are saving embedded

images as MSG files you never will be able to open them. Only embedded

Outlook objects can be saved as MSG files and then reopened. The fact that

they cannot be opened when Outlook is running or not running already leads

me to believe that they aren't Outlook objects but some other type of

attachment.

Another test would be to try opening the saved files using code, with the

CreateItemFromTemplate() method. If that also fails then we're not dealing

with proper MSG files.

If you look at an attached Outlook object attachment using OutlookSpy you

will see the property PR_ATTACH_METHOD (0x37050003), which will be set to 5

(ATTACH_EMBEDDED_MSG).

You will also see another property, PR_ATTACH_DATA_OBJ (0x3701000D), that's

not there with other types of attachments.

"arcfan" <arcfan> wrote in message

news:A4F3BA68-F17D-4A01-AD10-2039D80E64D3@microsoft.com...
> Ken,

> I really don't care about the attachment type. I save all attachment items
> going through in for each and save them in shared folder (UNC).

> The way how I test it, I explore the UNC path and see the items I saved
> (doc, xls, jpeg, .... and .msg too). When I double on any item but .msg it
> opens perfectly in a corresponding windows extension mapped application
> (.doc
> in word, .xls in Excel...)

> TO answer your question: "does it open as an Outlook item? Does it open at
> all?"
> Yes system recognize the item as outlook item and attempt to open the item
> with outlook but fails with the following error message.

> When I double click on .msg (I have OL 2007. OL 2007 was not launched when
> I
> attempt to open the saved embedded message items) and I get the
> following..

> -------------------------> Microsoft Office Outlook
> -------------------------> Cannot start Microsoft Office Outlook. Cannot read the item.
> -------------------------> OK
> -------------------------
> If I had OL 2007 launched already and double click on the saved embedded
> message then I get the following error

> -------------------------> Microsoft Office Outlook
> -------------------------> Cannot read the item.
> -------------------------> OK
> -------------------------
> I just used 2003 Outlook Object Model and saved the attachment. Why I'm
> not
> able to open the .msg attachments? I can live with temporary solution for
> some time. All I want to do is some way to see the save email item
> properties
> and see what it is... I tried OutlookSpy and that did not help eiether.

> I really don't find any documentation about this and badly need help from
> experts like you... Please help.

> Regards,
> Selvam.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
T vba extract data from msg file as attachment file of mail message Outlook VBA and Custom Forms 1
O VBA Outlook Message Attachment - Array Index Out of Bounds Outlook VBA and Custom Forms 0
geofferyh Cannot get Macro to SAVE more than one message attachment??? Outlook VBA and Custom Forms 5
Michael R Belleville Making an Attachment Name the Message Subject Using Outlook 2
R Print email message and attachment in order Outlook VBA and Custom Forms 2
Mark Foley Emailing attachment from Word/Excel sends attachment but no message body Using Outlook 0
Diane Poremsky Add Attachment Names to Message Before Sending Using Outlook 0
S Persistent Attachment Error Message Using Outlook 5
S send email attachment from word, message stripped out Using Outlook 1
T Unable to attach message as an attachment in outlook Using Outlook 5
S New Mail message, with attachment, always on top. Using Outlook 7
U Unable to send message with attachment Exchange Server Administration 2
V "A program has attachment filename open" Message returns Outlook VBA and Custom Forms 4
N Save Selected Email Message as .msg File Outlook VBA and Custom Forms 10
T Macro to move reply and original message to folder Outlook VBA and Custom Forms 6
O Outlook 2010 Add delete button to the side of the message list Using Outlook 1
Cathy Rhone The properties of the message have been changed Using Outlook 1
S Outlook 2016 A Shortcut to recall and delete and sent message. Using Outlook 1
S Unable to extract text from an Outlook email message Using Outlook 2
R Outlook 2016 Message-ID oddity/inconsistency? Using Outlook 7
J Implement Keywords based on body message Outlook VBA and Custom Forms 0
C must select message to trigger safe list Using Outlook 3
witzker HowTo Change message Class of contact form Outlook VBA and Custom Forms 0
D.Moore VB script to Digitaly Sign newly created outlook message Outlook VBA and Custom Forms 2
W September 2020 - No Default Email Client message after Office Update Using Outlook 1
A Flag Message for Follow Up after sending Outlook VBA and Custom Forms 1
S Outlook (2016 32bit; Gmail IMAP) - Save sent message to Outllook Folder Outlook VBA and Custom Forms 0
C Why won't Title display in message list? Using Outlook 1
icacream content in this message could not be downloaded.... Using Outlook 2
J Outlook 2016 After a search in all mailboxes, where is each message that was found? Using Outlook 6
R Warn before sending message Outlook VBA and Custom Forms 4
T Column to display which email alias a message was sent to Outlook VBA and Custom Forms 6
V Change start time based on message duration Outlook VBA and Custom Forms 2
J Message search and edit, another way? Outlook VBA and Custom Forms 4
N VBA to delete duplicates by message-id on common pst for 2 or more emails Outlook VBA and Custom Forms 0
S Create A Search Folder That Looks For Message Class? Outlook VBA and Custom Forms 0
M VBA to auto forward message with new subject and body text Outlook VBA and Custom Forms 8
T Missing text in e-mail message after "(Please keep confidential)" Using Outlook 3
C Custom Form (seperate layout pages and message reading pane) Outlook VBA and Custom Forms 0
C Create new Message with shared contacts & BCC'ing recipients Outlook VBA and Custom Forms 0
M Message list font changed after update Using Outlook 2
BretAB Is it possible to add a lookup field to a Message form? Outlook VBA and Custom Forms 4
D Unopened message in inbox deleted and not in deleted items Using Outlook 3
T Change the selected Message in the Outlook window Outlook VBA and Custom Forms 2
W Message class changes of a custom form changes to the default form Using Outlook 2
evdbogaard Reply with only last message cited Using Outlook 1
T O365 and Office Message Encryption Exchange Server Administration 2
S Custom Form, copy user field data to message body Outlook VBA and Custom Forms 12
D Outlook Message Window Changes Size and Position Using Outlook 1
N VBA Script to Open highlighted e-mail and Edit Message Outlook VBA and Custom Forms 5

Similar threads

Top