473,698 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1831
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("D SOleFile.Proper tyReader")
Set oProps = oDSO.GetDocumen tProperties("C: \Path\To\Your\f ile.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

"StrongBad" <St*******@NoSp am.com> wrote in message
news:uR******** ******@TK2MSFTN GP10.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******** *************** ***********@mic rosoft.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
2429
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 WORD PROJECT (from C#) and use the Application (thisApplication) the word project creates, it works fine, but this is far from a acceptable work around as doing it this way means I have to trigger the code from word. This does not work (Watch...
1
2145
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 mail merge created in another process. In the Merge process, I used "BuiltInDocumentProperties"
1
1984
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. I am using the following code to open the file and update the custom document properties. mobjDocument = New DSOFile.OleDocumentPropertiesClass mobjDocument.Open(FileName, False,
2
2442
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, where I declare objects as follows: Dim oWordApp As New Microsoft.Office.Interop.Word.Application, after adding a reference to Microsoft.Office.Core and a reference to Microsoft Word. I could do this since I have the Primary Interop...
13
4140
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 am using FireFox 1.5.0.1 I am looking for something like myImg.container. Can someone help me ? Thanks in advance
3
11590
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
4164
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 therefore being able to modify its properties?
1
1229
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 lab on two different days). This is the function I am using... function DisableOther(a){ var myD = a.name.substring(4, 5); var myS = a.name.substring(6, 7); var othD; if (myD == 1){ othD = '2'; } else {
1
4388
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 writer. created a .doc file and a copied it making a change to that file. here is the code
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8870
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7734
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3051
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.