473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Accesing Office Document Properties with ASP

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
Jul 21 '05 #1
3 1813
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.d oc")

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

"StrongBad" <St*******@NoSpam.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
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

Jul 21 '05 #2
"Ray Costanzo [MVP]" wrote:
I've never played with this, but you could try it out:
http://support.microsoft.com/?kbid=224351


I've used it and it works very well.
Jul 21 '05 #3
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

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:DE**********************************@microsof t.com...
"Ray Costanzo [MVP]" wrote:
I've never played with this, but you could try it out:
http://support.microsoft.com/?kbid=224351


I've used it and it works very well.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve Drake | last post by:
All, I am trying to open a word document and get all the properties using .NET (c#), if I create the wordapp, call the correct methods I get invalid cast (see code examples), but if I create a...
1
by: Patrick Conway | last post by:
Hi! I'm building a Windows form that allows users to view a list of files (and their properties(metadata)) stored in a certain directory. All of the files in the directory are a result of a...
1
by: James Hollyhomes | last post by:
I am using the DSO OLE Document Properties Reader 2.0 to update custom properties in office files. (i.e. a word document) After updating a couple of times, the word document becomes corrupted. ...
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
13
by: Fernando Deutsch | last post by:
I have an html page with an iframe on it. Inside the iframe there is an img element. I am looking how to reference the iframe from the img element contained on it and cannot find a way to do it. I...
3
by: mfc1981 | last post by:
Hi. I need to access to the hover style of an element with javascript. How can i do this? Best regards Manuel
16
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and...
1
by: arturofonseca | last post by:
I have an event where attendants can register for online. This is 2 day event. I want to be able to disable the same lab on day2 when it has been selected on day1 (so attendants don't select the same...
1
by: setori88 | last post by:
Hi guys this script i downloaded from here, http://win32com.goermezer.de/index.php?option=com_content&task=view&id=193&Itemid=274 I copied this script and setup and instance of open office...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.