Need to read "Title tag" and "original date" of pictures

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2007
Posts: 16
Reputation: Kees Baltus is an unknown quantity at this point 
Solved Threads: 0
Kees Baltus Kees Baltus is offline Offline
Newbie Poster

Need to read "Title tag" and "original date" of pictures

 
0
  #1
Apr 22nd, 2007
I need to read "Title tag" and "original date"of pictures.
I installed WIAaut.dll and put Commondialog on form.
I can read all items from the Img.Properties with a loop.

It is difficult to find out how to get only the "Title tag" and "DateTimeOriginal".
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 16
Reputation: Kees Baltus is an unknown quantity at this point 
Solved Threads: 0
Kees Baltus Kees Baltus is offline Offline
Newbie Poster

Re: Need to read "Title tag" and "original date" of pictures

 
0
  #2
Apr 27th, 2007
[quote=Kees Baltus;350397]I need to read "Title tag" and "original date"of pictures.
I installed WIAaut.dll and put Commondialog on form.
I can read all items from the Img.Properties with a loop.


SOLUTION:
Set Img = CreateObject("WIA.ImageFile")
Set IP = CreateObject("WIA.ImageProcess")
Set fs = CreateObject("Scripting.FileSystemObject")

Img.LoadFile "C:\Yvonne.jpg"
Set f = fs.GetFile("c:\Yvonne.jpg")

If Img.Properties.Exists("36867") Then
MsgBox "Date of original = " & Img.Properties("36867").Value
Else
MsgBox "Datecreated = " & f.DateCreated
End If
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 16
Reputation: Kees Baltus is an unknown quantity at this point 
Solved Threads: 0
Kees Baltus Kees Baltus is offline Offline
Newbie Poster

Re: Need to read "Title tag" and "original date" of pictures

 
0
  #3
Apr 27th, 2007
[quote=Kees Baltus;353817]
Originally Posted by Kees Baltus View Post
I need to read "Title tag" and "original date"of pictures.
I installed WIAaut.dll and put Commondialog on form.
I can read all items from the Img.Properties with a loop.


SOLUTION:
Set Img = CreateObject("WIA.ImageFile")
Set IP = CreateObject("WIA.ImageProcess")
Set fs = CreateObject("Scripting.FileSystemObject")

Img.LoadFile "C:\Yvonne.jpg"
Set f = fs.GetFile("c:\Yvonne.jpg")

If Img.Properties.Exists("36867") Then
MsgBox "Date of original = " & Img.Properties("36867").Value
Else
MsgBox "Datecreated = " & f.DateCreated
End If
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC