![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
When I drag and drop a group of Outlook messages to a Windows file system
folder, the file names are resloved (illegal characters removed) and duplicate file names are catered for (using (1), (2)...). How do I access and use the function(s) that take care of these aspects? When using MailItem.Subject as the filename with the MailItem.SaveAs method, the file name is not resolved and truncates at the point an illeagal charater in ..Subject is encountered. Ta. |
#2
|
|||
|
|||
![]()
You have to write your own procedure to find and remove the illegal
characters. See http://www.grouplogic.com/knowledge/...Info/docID/111 for a list of illegal characters and file names. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "GP" wrote in message ... When I drag and drop a group of Outlook messages to a Windows file system folder, the file names are resloved (illegal characters removed) and duplicate file names are catered for (using (1), (2)...). How do I access and use the function(s) that take care of these aspects? When using MailItem.Subject as the filename with the MailItem.SaveAs method, the file name is not resolved and truncates at the point an illeagal charater in .Subject is encountered. Ta. |
#3
|
|||
|
|||
![]()
Ken,
Writing a procedure to remove the illeagal string characters is not a problem. I have already written a function to do that. However the .SaveAs method sometimes throws an error for unexpected reasons (I have seen it happen when there is a tab in .Subject). Are the built in functions that already deal with this, and the handling of two messages witht the same filename, not accessible? Thanks. |
#4
|
|||
|
|||
![]()
Obviously if you're getting errors in those circumstances the internal code
that checks those things is not being called and it's up to you to take care of handling those conditions. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "GP" wrote in message ... Ken, Writing a procedure to remove the illeagal string characters is not a problem. I have already written a function to do that. However the .SaveAs method sometimes throws an error for unexpected reasons (I have seen it happen when there is a tab in .Subject). Are the built in functions that already deal with this, and the handling of two messages witht the same filename, not accessible? Thanks. |
#5
|
|||
|
|||
![]()
Ken,
I'm just trying to avoid re-inventing the wheel. If Microsoft have already written the existing functions to cope with file naming errors that I have thought of, and also errors I have not thought of, then using those functions would be a great help. For example I had one .SaveAs file name error that I never found the cause of, even after pasting .Subject into Word and looking for non-visible / non-standard characters. Are the built in functions available, and if so how can I access them? Thanks. |
#6
|
|||
|
|||
![]()
Those functions are not accessible from Outlook. They may be available as
Win32 API calls possibly, or from some Framework calls if you're using managed code, otherwise you have to roll your own. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "GP" wrote in message ... Ken, I'm just trying to avoid re-inventing the wheel. If Microsoft have already written the existing functions to cope with file naming errors that I have thought of, and also errors I have not thought of, then using those functions would be a great help. For example I had one .SaveAs file name error that I never found the cause of, even after pasting .Subject into Word and looking for non-visible / non-standard characters. Are the built in functions available, and if so how can I access them? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue with Resolving Names | AP[_2_] | Outlook and VBA | 2 | December 18th 07 08:54 PM |
Saving attachements w/ names from a .xls file... | [email protected] | Outlook and VBA | 2 | August 24th 07 01:55 PM |
punctuation in attachment file names | [email protected] | Outlook - General Queries | 1 | July 20th 07 09:20 PM |
File names do not appear when trying to export to any file type except .pst | [email protected] | Outlook - General Queries | 8 | December 25th 06 12:29 PM |
How to stop fax number showing as address when resolving names | Bob Harley | Outlook - Using Contacts | 1 | November 22nd 06 05:08 PM |