Accesing Office Document Properties with ASP

S

StrongBad

Does anyone know of a way to access the document properties of an office
document using ASP? I need to be able to read things like the Title,
Author, and Comments fields and pull that information into a web page.

Any help is greatly appreciated.

Thanks!!

Eric
 
R

Ray Costanzo [MVP]

I've never played with this, but you could try it out:
http://support.microsoft.com/?kbid=224351

Sample code:

<%
Dim oDSO, oProps
Set oDSO = CreateObject("DSOleFile.PropertyReader")
Set oProps = oDSO.GetDocumentProperties("C:\Path\To\Your\file.doc")

Response.Write "Title: " & oProps.Title & "<br>"
Response.Write "Author: " & oProps.Author & "<br>"
Response.Write "Comments: " & oProps.Comments

Set oProps = Nothing
Set oDSO = Nothing
%>

Ray at home
 
R

Ray Costanzo [MVP]

I played around with it a bit last night then, and I have to say that I'm
pretty excited about it! The things that bring me joy.... Sigh

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top