borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Minesweeper Project: 1. MinePlacement 2. Best score)Next Topic (Welcome to the new AndreaVB Forum) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Getting Summary Info from a File
Poster Message
Jig
Level: Guest


icon Getting Summary Info from a File  Archived to Disk

I would like to be able to retrieve the Title of a document (found in the Summary Info section) in a directory and display it in place of the actual file name. How can I do this without opening the document?

11-04-2002 at 08:36 PM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: Getting Summary Info from a File  Archived to Disk

Do you mean display the name in the title as seen in (for example) My Documents?

ie:
    Word Document
    title: "VB Standards"
    filename: "VBStds.doc"
you want "VB Standards" displayed in the folder (directory), NOT "VBStds"?

If so, then, if possible, it'd be more of a registry tweak if anything I'd think. Then you'd have the problem of illegal characters in the title.

If you just want to create a program that'd show the "title" not "filename", then it should be possible, although I've never seen code to do that in particular.

11-04-2002 at 09:03 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Jig
Level: Guest

icon Re: Re: Getting Summary Info from a File  Archived to Disk

e.g. I have a Word Document with a file name of 040902.doc. In the summary info the title is "Losses incurred in April". I want to display the title to people not the file name. I would use automation and a loop for each file in the subdirectory. I can do this if I open the document and read the summary info but for obvious reasons I don't want to open each file to do this.

12-04-2002 at 01:46 PM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: Getting Summary Info from a File  Archived to Disk

I kept on looking for the title attribute in office documents.

The closest thing I found was at:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q224351

(Q224351)

It has a DLL file that lets you change/view those attributes. So I'd check it out. It should help you do what you need.

12-04-2002 at 09:56 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Jig
Level: Guest

icon Re: Re: Getting Summary Info from a File  Archived to Disk

Thank you.

  Looks like it will do what I was asking. Most appreciated

16-04-2002 at 02:30 PM
| Quote Reply
AndreaVB Forum : VB General : Getting Summary Info from a File
Previous Topic (Minesweeper Project: 1. MinePlacement 2. Best score)Next Topic (Welcome to the new AndreaVB Forum) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder