944,149 Members | Top Members by Rank

Ad:
Apr 22nd, 2007
0

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

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

It is difficult to find out how to get only the "Title tag" and "DateTimeOriginal".
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Kees Baltus is offline Offline
16 posts
since Mar 2007
Apr 27th, 2007
0

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

[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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Kees Baltus is offline Offline
16 posts
since Mar 2007
Apr 27th, 2007
0

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

[quote=Kees Baltus;353817]
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Kees Baltus is offline Offline
16 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Visual Basic 4 Upgrades?
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: expanding my knowledge





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC