473,395 Members | 1,568 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,395 software developers and data experts.

How do I get/set Office Xp file properties without opening Word

Ken
Hi,

I've written a C# app in VS .Net 2003 that gets and sets custom/summary
properties of Word documents by selecting a directory and get/setting
values using BuiltInDocumentProperties and CustomDocumentProperties by
opening Word whilst not visable updating then saving the doc.

However, I can see these values in the properties of the file in Windows
explorer (via the custom and summary tabs) which makes me think, can I
update these values WITHOUT having to open (invisable) update and save the
Word doc but just be able to get/set these properties if they're available
thru Windows Explorer

Thanks

Ken
Jul 21 '05 #1
1 1991
Look at COMPOUND FILE STORAGE, or even better look at this website :

http://support.microsoft.com/default...NoWebContent=1

its a COM object, but it will work from .NET

We (the company I work for) have a version of the written in managed C++,
but it doesn't allow setting of properties.

Steve
"Ken" <fu************@hotmail.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hi,

I've written a C# app in VS .Net 2003 that gets and sets custom/summary
properties of Word documents by selecting a directory and get/setting
values using BuiltInDocumentProperties and CustomDocumentProperties by
opening Word whilst not visable updating then saving the doc.

However, I can see these values in the properties of the file in Windows
explorer (via the custom and summary tabs) which makes me think, can I
update these values WITHOUT having to open (invisable) update and save the
Word doc but just be able to get/set these properties if they're available
thru Windows Explorer

Thanks

Ken

Jul 21 '05 #2

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: 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. ...
1
by: Jason Steeves | last post by:
If I use an html link to open a word document word will open this file, on the server, with the clients word as the client has a file association setup for .doc to utilize word. I need to...
5
by: Zamolxe | last post by:
I have installed the Visual Studio 2003 FULL With MSDN (ORIGINAL NOT CRACKED :), Office 2003PRO FULL. After installing Office i have insatlled the MSDE form OFFICE CD, IIS is installed. Then:...
3
by: Stu | last post by:
Hi, I am trying to open a word document from an asp.net page but I keep getting an access denied error when I try to create an instance of the word applications. I have created references to...
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,...
1
by: Ken | last post by:
Hi, I've written a C# app in VS .Net 2003 that gets and sets custom/summary properties of Word documents by selecting a directory and get/setting values using BuiltInDocumentProperties and...
2
by: Scott | last post by:
I preview a report and click the button to publish the report to Word or Excel document. It works correctly until today. It produced below error message. Microsoft Office Access can't complete...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.