MS Office Forum / Outlook / Programming VBA / March 2007
Change filename
|
|
Thread rating:  |
Peter Marchert - 27 Mar 2007 21:07 GMT Hello,
in this post http://groups.google.com/group/microsoft.public.outlook.program_vba/browse_threa d/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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
Ken Slovak - [MVP - Outlook] - 27 Mar 2007 21:20 GMT No, you can't do that. You also can't add a UserProperty to a DocumentItem.
 Signature Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm
Hello,
in this post http://groups.google.com/group/microsoft.public.outlook.program_vba/browse_threa d/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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
Peter Marchert - 28 Mar 2007 05:51 GMT Thank you Ken,
I feared that, but is also a help surley to know that is not possible.
Peter
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
On 27 Mrz., 22:20, "Ken Slovak - [MVP - Outlook]" <kenslo...@mvps.org> wrote:
> No, you can't do that. You also can't add a UserProperty to a DocumentItem. > [quoted text clipped - 20 lines] > Infos, workshops & soft- > ware for your Outlook®:www.outlook-stuff.com Dmitry Streblechenko - 27 Mar 2007 21:58 GMT 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/microsoft.public.outlook.program_vba/browse_threa d/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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
Peter Marchert - 28 Mar 2007 05:52 GMT Thank you Dmitry for your answer,
it`s a file I dragged and dropped by the windows explorer.
Peter
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
> Do you mean you want to change the file name of an attachment stored by a > document item in Outlook? [quoted text clipped - 21 lines] > Infos, workshops & soft- > ware for your Outlook®:www.outlook-stuff.com Dmitry Streblechenko - 28 Mar 2007 18:07 GMT 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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
On 27 Mrz., 22:58, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> Do you mean you want to change the file name of an attachment stored by a > document item in Outlook? [quoted text clipped - 25 lines] > Infos, workshops & soft- > ware for your Outlook®:www.outlook-stuff.com Peter Marchert - 28 Mar 2007 18:27 GMT 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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
> So did it work after/if you tried my suggestion? > [quoted text clipped - 45 lines] > > - Zitierten Text anzeigen - Dmitry Streblechenko - 28 Mar 2007 19:18 GMT 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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
On 28 Mrz., 19:07, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> So did it work after/if you tried my suggestion? > [quoted text clipped - 49 lines] > > - Zitierten Text anzeigen - Peter Marchert - 28 Mar 2007 20:10 GMT 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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
> 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 [quoted text clipped - 73 lines] > > - Zitierten Text anzeigen - Dmitry Streblechenko - 28 Mar 2007 21:56 GMT 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
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
> 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 [quoted text clipped - 77 lines] > > - Zitierten Text anzeigen - Michael Bauer [MVP - Outlook] - 29 Mar 2007 06:13 GMT 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.
 Signature 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:
> Ok, my original suggestion still applies. Rename the attachment on the > message created after you drag a file from Window Explorer to an Outlook [quoted text clipped - 100 lines] >> >>> > in this posthttp://groups.google.com/group/microsoft.public.outlook.program_vba/b...
>>> > I changed the conversationtopic because I thougt this is the name the >>> > file is stored in the Outlook folder. [quoted text clipped - 14 lines] >> >> - Zitierten Text anzeigen - Peter Marchert - 29 Mar 2007 07:39 GMT > 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.
On 29 Mrz., 07:13, "Michael Bauer [MVP - Outlook]" <m...@mvps.org> 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.
Thanks
Peter
> Dmitry Streblechenko (MVP)http://www.dimastr.com/ > OutlookSpy - Outlook, CDO [quoted text clipped - 115 lines] > > - Zitierten Text anzeigen - Michael Bauer [MVP - Outlook] - 29 Mar 2007 09:33 GMT > It seems I need this tool. If I get back the job I will buy this tool > imeaditly. Peter, the few bucks for it will really save you a lot of valueable time!
 Signature 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)
Peter Marchert - 29 Mar 2007 17:24 GMT So, got the job back and bought the Tool.
Thanks to all! Peter
> > Ok, my original suggestion still applies. Rename the attachment on the > > message created after you drag a file from Window Explorer to an Outlook [quoted text clipped - 145 lines] > > - Zitierten Text anzeigen - Dmitry Streblechenko - 29 Mar 2007 18:22 GMT 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
> On 28 Mrz., 22:56, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote: > [quoted text clipped - 154 lines] > > - Zitierten Text anzeigen - Peter Marchert - 29 Mar 2007 20:03 GMT 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! > [quoted text clipped - 167 lines] > > - Zitierten Text anzeigen - Ken Slovak - [MVP - Outlook] - 29 Mar 2007 21:13 GMT 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.
 Signature Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm
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
Peter Marchert - 29 Mar 2007 21:24 GMT On 29 Mrz., 22:13, "Ken Slovak - [MVP - Outlook]" <kenslo...@mvps.org> wrote:
> 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. Yes, I belive this (I read your comment on Dmitry`s homepage: http://www.dimastr.com/outspy/).
Peter
-- Infos, workshops & soft- ware for your Outlook®: www.outlook-stuff.com
|
|
|