Answered by:
How to edit file properties and personal information

Question
-
I am using window 7 now, I am trying to write up a wee program by vb.net to edit the image properties like edit the title, author, comment, rating, description..... I have try the DSOFile, but it only edit the file attribute and wouldn't show up.
would anybody can give me some help?
Wednesday, April 28, 2010 2:15 PM
Answers
-
First of all, DSOFile library was design to read and edit microsoft office products. Some programmers try to take advantage of this using it for different file but it does not work well for every file. Read this about dsofile http://support.microsoft.com/kb/224351
You may try to search for way to do this using shell32.dll http://msdn.microsoft.com/en-us/library/ms630403.aspx and for image metadata try http://msdn.microsoft.com/en-us/library/ms533832(v=VS.85).aspx
kaymaf
CODE CONVERTER SITE
- Marked as answer by Martin_Xie Tuesday, May 4, 2010 5:28 AM
Wednesday, April 28, 2010 3:46 PM -
Thank you All for your suggestion.
Hi Anson_y,
Additionally, here are two approaches for you to read/write file properties information:
1. Using "Microsoft Shell Controls and Automation" (shell32.dll) COM objectThe Windows system could store additional information like author, comment, title, category... to a file, this information can be read with
GetDetailsOf
method from the shell32.dll.Article: http://www.codeproject.com/KB/files/detailedfileinfo.aspx
Beforehand, add a new COM reference "Microsoft Shell Controls and Automation" (shell32.dll) to your Project. KB: http://www.microsoft.com/downloads/details.aspx?FamilyId=9BA6FAC6-520B-4A0A-878A-53EC8300C4C2&displaylang=en
2. Using "Microsoft Developer Support OLE File Property Reader" COM object
The Microsoft Developer Support OLE File Property Reader 2.1 Sample demonstrates how to use the IPropertyStrorage interface to read and write document properties of Microsoft Word, Microsoft Excel, Microsoft PowerPoint, and Microsoft Visio files, independent of the application that created the file.
Best regards,
Martin Xie
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked as answer by Martin_Xie Wednesday, May 5, 2010 2:39 AM
Tuesday, May 4, 2010 5:48 AM
All replies
-
I am using window 7 now, I am trying to write up a wee program by vb.net to edit the image properties like edit the title, author, comment, rating, description..... I have try the DSOFile, but it only edit the file attribute and wouldn't show up.
would anybody can give me some help?
Hi,Are you trying to edit the EXIF data in a RAW picture file from a digital camera?
If so try.>>
Regards,
John
Please see this thread for Vb.Net learning links.>> http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/549c8895-6780-42f8-878f-2138214fdeb4Wednesday, April 28, 2010 2:20 PM -
First of all, DSOFile library was design to read and edit microsoft office products. Some programmers try to take advantage of this using it for different file but it does not work well for every file. Read this about dsofile http://support.microsoft.com/kb/224351
You may try to search for way to do this using shell32.dll http://msdn.microsoft.com/en-us/library/ms630403.aspx and for image metadata try http://msdn.microsoft.com/en-us/library/ms533832(v=VS.85).aspx
kaymaf
CODE CONVERTER SITE
- Marked as answer by Martin_Xie Tuesday, May 4, 2010 5:28 AM
Wednesday, April 28, 2010 3:46 PM -
Thank you All for your suggestion.
Hi Anson_y,
Additionally, here are two approaches for you to read/write file properties information:
1. Using "Microsoft Shell Controls and Automation" (shell32.dll) COM objectThe Windows system could store additional information like author, comment, title, category... to a file, this information can be read with
GetDetailsOf
method from the shell32.dll.Article: http://www.codeproject.com/KB/files/detailedfileinfo.aspx
Beforehand, add a new COM reference "Microsoft Shell Controls and Automation" (shell32.dll) to your Project. KB: http://www.microsoft.com/downloads/details.aspx?FamilyId=9BA6FAC6-520B-4A0A-878A-53EC8300C4C2&displaylang=en
2. Using "Microsoft Developer Support OLE File Property Reader" COM object
The Microsoft Developer Support OLE File Property Reader 2.1 Sample demonstrates how to use the IPropertyStrorage interface to read and write document properties of Microsoft Word, Microsoft Excel, Microsoft PowerPoint, and Microsoft Visio files, independent of the application that created the file.
Best regards,
Martin Xie
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked as answer by Martin_Xie Wednesday, May 5, 2010 2:39 AM
Tuesday, May 4, 2010 5:48 AM