Word.Application how to load to object without open
-
I am trying to get word document title and number of word in the document Currently, I can only get these properties from opening the document. Is there any way to get these information without actually opening the word document. Shin
-
I am trying to get word document title and number of word in the document Currently, I can only get these properties from opening the document. Is there any way to get these information without actually opening the word document. Shin
No, there isn't. You have to open the document. From what I can see in the file format, those properties are not stored in the file. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
No, there isn't. You have to open the document. From what I can see in the file format, those properties are not stored in the file. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Thank you for your input, This is the way to get the document property Is there any way to open the word document silently? The source code below is not working. wordApp.Documents.Open strFileName wordApp.Visible = False VB6/Windows2000 Shin
-
Thank you for your input, This is the way to get the document property Is there any way to open the word document silently? The source code below is not working. wordApp.Documents.Open strFileName wordApp.Visible = False VB6/Windows2000 Shin
I found a solution. the dll dsofile.dll was availble for getting office document properties with out open. I downloaded and used from kb. Thank you. Shin "Microsoft Knowledge Base Article - 224351 " Dim oFilePropReader As DSOleFile.PropertyReader Dim oDocProp As DSOleFile.DocumentProperties Set oFilePropReader = New DSOleFile.PropertyReader Set oDocProp = oFilePropReader.GetDocumentProperties(strFileName) Debug.print oDocProp.Title 'display the title of document set oFilePropReader = nothing