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


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


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


>
 
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
M Search message, then (1) Jump to folder & (2) Select message that you searched for Outlook VBA and Custom Forms 2
Kika Melo How to mark as Junk any message not from Contacts (in Outlook.com) Using Outlook 3
G Outlook 365 My iCloud Outlook doesn’t work after reinstalling Microsoft365 on Windows 10 PC – now I get error message on contacts and calendar Using Outlook 1
G Get current open draft message body from VBA Outlook VBA and Custom Forms 1
E Outlook 365 Save Selected Email Message as .msg File - oMail.Delete not working when SEARCH Outlook VBA and Custom Forms 0
HarvMan Outlook 365 - Rule to Move an Incoming Message to Another Folder Using Outlook 4
F Outlook 2019 Forwarding Message and Keeping Unread Status Outlook VBA and Custom Forms 0
E Save Selected Email Message as .msg File - digitally sign email doesn't works Outlook VBA and Custom Forms 1
C Populate form data into message body Outlook VBA and Custom Forms 1
J Outlook 365 Add keywords from Listbox to the message body where cursor is placed Outlook VBA and Custom Forms 0
B How to create a button that sorts and selects the most recent message with ONE click Using Outlook 2
P "Item could not be moved" message occurs frequently for IMAP inbox, Office 365 Using Outlook 0
A rule name into message - how? Outlook VBA and Custom Forms 5
A Links in email getting error message about group policy Using Outlook 4
O How to find and replace a word in Outlook-Agenda-Subject and Message? Using Outlook 0
X Open Hyperlinks in an Outlook Email Message (Help with Diane's solution) Outlook VBA and Custom Forms 3
Commodore Unable to move message Using Outlook 3
Y Disable Microsoft Outlook Test Message Using Outlook 4
S Unable to change Message Class Outlook VBA and Custom Forms 0
S Changing Message Class Outlook VBA and Custom Forms 4
Cathy Rhone Mail merge error message Using Outlook 1
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
G Send a greeting message to a contact on birthday Outlook VBA and Custom Forms 5
B Inconsistent handling of message read/unread status by Outlook Using Outlook 3
N Save Selected Email Message as .msg File Outlook VBA and Custom Forms 12
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

Similar threads

Back
Top