Change filename

K

Ken Slovak - [MVP - Outlook]

No, you can't do that. You also can't add a UserProperty to a DocumentItem.




Hello,

in this post
http://groups.google.com/group/micr...browse_thread/thread/d75ab312ad3cec52/?hl=de#
I changed the conversationtopic because I thougt this is the name the
file is stored in the Outlook folder.

Now I found out that this has nothing to do with the filename. Is it
possible to change the filename of a file which is stored in an
Outlook folder?

Thanks!
Peter
 
D

Dmitry Streblechenko

Do you mean you want to change the file name of an attachment stored by a
document item in Outlook?
Change the attachment file name, save the attachment (RDOAttachment.Save),
then save the parent message (RDOMail.Save).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Hello,

in this post
http://groups.google.com/group/micr...browse_thread/thread/d75ab312ad3cec52/?hl=de#
I changed the conversationtopic because I thougt this is the name the
file is stored in the Outlook folder.

Now I found out that this has nothing to do with the filename. Is it
possible to change the filename of a file which is stored in an
Outlook folder?

Thanks!
Peter
 
P

Peter Marchert

Thank you Ken,

I feared that, but is also a help surley to know that is not possible.

Peter
 
P

Peter Marchert

Thank you Dmitry for your answer,

it`s a file I dragged and dropped by the windows explorer.

Peter
 
D

Dmitry Streblechenko

So did it work after/if you tried my suggestion?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Thank you Dmitry for your answer,

it`s a file I dragged and dropped by the windows explorer.

Peter
 
P

Peter Marchert

Hmm, sorry, Dmitry, I don`t understand you. I have only a file, no
message with an attachment.

Perhaps you can more explain what I should try (may be my english is
not good enough to understand you, sorry).

Peter
 
D

Dmitry Streblechenko

I probably totally misunderstand what you are trying to do.
Can you explain in detail what you are doing and what exactly you want to
change?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Hmm, sorry, Dmitry, I don`t understand you. I have only a file, no
message with an attachment.

Perhaps you can more explain what I should try (may be my english is
not good enough to understand you, sorry).

Peter
 
P

Peter Marchert

No problem, I try it.

Let`s create a new folder in Outlook from type "email". Then drag a
pdf file from the windows explorer and drop it to the new email folder
in Outlook.

Now you have two properties in Outlook with the name of the pdf file
(for example "doc_x1_q76.332.pdf"). These properties will be shown as
the "ConversationTopic" and the "Subject" of this "olDocument" item.
Ok, with your redemption.dll (thank you) I can also change the write
protected property ConversationTopic (I thought this is the name the
file is stored in Outlook).

If you now add this stored file to a new email as an element, the
original file name is shown there. My customer who asked me this
functionalty wants to change the name of this file to the name of the
subject which he can edit. So if he send this file to a customer, the
customer will not see "doc_x1_q76.332.pdf" as attachment, but
"manual.pdf".

After Ken`s answer I tried to change the attachments file name of a
new email, but it seems that this works not too. So it would be
possible to react to the AddAttachments-Event (if avaible), search the
filename in the email folders and rename it to the subject of this
file.

Peter
 
D

Dmitry Streblechenko

Ok, my original suggestion still applies. Rename the attachment on the
message created after you drag a file from Window Explorer to an Outlook
folder.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

No problem, I try it.

Let`s create a new folder in Outlook from type "email". Then drag a
pdf file from the windows explorer and drop it to the new email folder
in Outlook.

Now you have two properties in Outlook with the name of the pdf file
(for example "doc_x1_q76.332.pdf"). These properties will be shown as
the "ConversationTopic" and the "Subject" of this "olDocument" item.
Ok, with your redemption.dll (thank you) I can also change the write
protected property ConversationTopic (I thought this is the name the
file is stored in Outlook).

If you now add this stored file to a new email as an element, the
original file name is shown there. My customer who asked me this
functionalty wants to change the name of this file to the name of the
subject which he can edit. So if he send this file to a customer, the
customer will not see "doc_x1_q76.332.pdf" as attachment, but
"manual.pdf".

After Ken`s answer I tried to change the attachments file name of a
new email, but it seems that this works not too. So it would be
possible to react to the AddAttachments-Event (if avaible), search the
filename in the email folders and rename it to the subject of this
file.

Peter
 
M

Michael Bauer [MVP - Outlook]

May I jump in, too?

Peter, I think you also have OutlookSpy installed. If you select the
DocumentItem and click on IMessage, goto to GetAttachmentTable. There you
see that actually the PDF file is an attachment of the DocumentItem.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Wed, 28 Mar 2007 13:56:06 -0700 schrieb Dmitry Streblechenko:
 
P

Peter Marchert

Ok, my original suggestion still applies. Rename the attachment on the
message created after you drag a file from Window Explorer to an Outlook
folder.

Yes, it works! Thanks a lot!

I didn`t understand that a dropped file is handled like a message with
an attachment. That was the point of missunderstanding.

Peter, I think you also have OutlookSpy installed.

No, I havent`t it installed on my working machine but somewhere in a
virtual machine to test something what Dmitry suggested me some time
ago.

It seems I need this tool. If I get back the job I will buy this tool
imeaditly.

Thanks

Peter
 
P

Peter Marchert

I thank you for this great tool! It looks like a mighty utility for
Outlook and if I have understood it, it will help me very much.

Peter

Thanks Peter!

Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


So, got the job back and bought the Tool.

Thanks to all!
Peter

Yes, it works! Thanks a lot!
I didn`t understand that a dropped file is handled like a message with
an attachment. That was the point of missunderstanding.
On 29 Mrz., 07:13, "Michael Bauer [MVP - Outlook]" <[email protected]>
wrote:
Peter, I think you also have OutlookSpy installed.
No, I havent`t it installed on my working machine but somewhere in a
virtual machine to test something what Dmitry suggested me some time
ago.
It seems I need this tool. If I get back the job I will buy this tool
imeaditly.
- Zitierten Text anzeigen -- Zitierten Text ausblenden -

- Zitierten Text anzeigen -
 
K

Ken Slovak - [MVP - Outlook]

It's a great tool. Not a day goes by that I haven't used it since Dmitry
first released it. If I had to give up all my development tools OutlookSpy
would be the last one to go.




I thank you for this great tool! It looks like a mighty utility for
Outlook and if I have understood it, it will help me very much.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top