DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Word Document Properties

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Sydney, Australia
    Posts
    498

    Word Document Properties

    When the following code is used :-

    Code:
        Dim wd As Word.Document
        If gWrdApp Is Nothing Then
            Set gWrdApp = CreateObject("Word.Application")
        End If
        
        Set wd = gWrdApp.Documents.Open(lblDocFolder.Caption & "\" & lvDocs.SelectedItem.SubItems(1))
        
        sProperties = "Author   : " & wd.BuiltInDocumentProperties(wdPropertyAuthor) & vbCrLf & _
                        "Comments : " & wd.BuiltInDocumentProperties(wdPropertyComments) & vbCrLf & _
                        "KeyWords : " & wd.BuiltInDocumentProperties(wdPropertyKeywords)
        MsgBox "DOCUMENT PROPERTIES" & vbCrLf2 & sProperties, vbOKOnly + vbInformation, lvDocs.SelectedItem.SubItems(1) & " properties"
        wd.Close
        Set wd = Nothing
    The Date Modified of the file is altered to 'now'. Is there any other way of finding the info for a document w/o this happening?

    Thanks in advance

    Greg

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Using VB6, I can show you how to bring up the exact same properties page that you would get if you right clicked on the file in Windows Explorer. Would that help?

Similar Threads

  1. Word document properties
    By gupex in forum VB Classic
    Replies: 2
    Last Post: 11-04-2010, 05:21 AM
  2. Replies: 6
    Last Post: 09-08-2009, 06:02 PM
  3. Replies: 0
    Last Post: 10-15-2008, 11:54 AM
  4. Replies: 0
    Last Post: 02-12-2002, 07:04 AM
  5. Word document upload
    By Sven in forum VB Classic
    Replies: 1
    Last Post: 10-05-2000, 01:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center