A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Determine the file extension of this attachment?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 24th 06, 02:33 PM posted to microsoft.public.outlook.program_vba
George Hester
external usenet poster
 
Posts: 54
Default Determine the file extension of this attachment?

Here is the attachment's name and size:

travelogue ashore botulism longstanding snook said bequeath ajar solidify
counterclockwise scapular manipulable bobble anomalous ecstatic agile
straighten deliverance brethren buoyant trudge aching darkle chlorophyll
adjudge abutted puppeteer fantasist shivery .gif [13822]

Outlook 2000 does display this attachment in the e-mail. It is an embedded
image like this:

a href="http://xwnjhr039.quitefunnyyes.com"

img src="cid:LQPPS6MX5P" border=0/a


I cannot get the image type because the name of the gif is more than 255
characters. How would I go about getting the image type using VBA in
Outlook 2000? Thanks.

--

George Hester
_________________________________

Ads
  #2  
Old April 24th 06, 03:23 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Determine the file extension of this attachment?

Can you use CDO or some other API that lets you get at the attachment's
properties (not the Outlook object model) if Attachment.FileName doesn't
work?

The property you'd want would be PR_ATTACH_LONG_FILENAME, property tag
&H3707001E.

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


"George Hester" wrote in message
...
Here is the attachment's name and size:

travelogue ashore botulism longstanding snook said bequeath ajar solidify
counterclockwise scapular manipulable bobble anomalous ecstatic agile
straighten deliverance brethren buoyant trudge aching darkle chlorophyll
adjudge abutted puppeteer fantasist shivery .gif [13822]

Outlook 2000 does display this attachment in the e-mail. It is an
embedded
image like this:

a href="http://xwnjhr039.quitefunnyyes.com"

img src="cid:LQPPS6MX5P" border=0/a


I cannot get the image type because the name of the gif is more than 255
characters. How would I go about getting the image type using VBA in
Outlook 2000? Thanks.

--

George Hester
_________________________________


  #3  
Old April 24th 06, 10:41 PM posted to microsoft.public.outlook.program_vba
George Hester
external usenet poster
 
Posts: 54
Default Determine the file extension of this attachment?

Thanks Ken I'll give that a try.

--

George Hester
_________________________________
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Can you use CDO or some other API that lets you get at the attachment's
properties (not the Outlook object model) if Attachment.FileName doesn't
work?

The property you'd want would be PR_ATTACH_LONG_FILENAME, property tag
&H3707001E.

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


"George Hester" wrote in message
...
Here is the attachment's name and size:

travelogue ashore botulism longstanding snook said bequeath ajar

solidify
counterclockwise scapular manipulable bobble anomalous ecstatic agile
straighten deliverance brethren buoyant trudge aching darkle chlorophyll
adjudge abutted puppeteer fantasist shivery .gif [13822]

Outlook 2000 does display this attachment in the e-mail. It is an
embedded
image like this:

a href="http://xwnjhr039.quitefunnyyes.com"

img src="cid:LQPPS6MX5P" border=0/a


I cannot get the image type because the name of the gif is more than 255
characters. How would I go about getting the image type using VBA in
Outlook 2000? Thanks.

--

George Hester
_________________________________



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File attachment Chandra Outlook Express 5 March 15th 06 04:31 PM
Sent Attachment Without File Extension Gerald Boutin Outlook - General Queries 2 March 2nd 06 04:34 PM
sending exel file as attachment Rami Outlook - Installation 1 February 23rd 06 02:51 PM
Embedded image in email - PCX file extension Glyn Elrod Outlook Express 27 February 13th 06 04:51 PM
File attachment folder Patrickm Outlook - General Queries 9 February 7th 06 01:24 AM


All times are GMT +1. The time now is 03:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.