Possible to Read/Write Word Docs without Word Application?

A

Ahmad Jalil Qarshi

hi!

Is it possible to Manipulate (Read/Write) MS Word documents without
installing Microsoft Word. i.e if i dont have MS Word installed on my
machine and i want to add some lines of text into Word document
programatically. How is it possible?

Thanks
Ahmad Jalil Qarshi
 
J

Jezebel

It's technically possible, of course: open the file as binary, modify it as
you need. But extremely difficult in practice, because the file format is
not published, and is reputed to be a) polymorphic, and b) deliberately
obscure for security reasons.
 
A

Ahmad Jalil Qarshi

Thanks Jezebel

Jezebel said:
It's technically possible, of course: open the file as binary, modify it as
you need. But extremely difficult in practice, because the file format is
not published, and is reputed to be a) polymorphic, and b) deliberately
obscure for security reasons.
 
A

Ahmad Jalil Qarshi

and what if i have MS Word Installed on my Machine. then is it possible to
do that without opening it
 
J

Jezebel

No of course not. By definition.


Ahmad Jalil Qarshi said:
and what if i have MS Word Installed on my Machine. then is it possible to
do that without opening it
 
J

Jonathan West

Ahmad Jalil Qarshi said:
hi!

Is it possible to Manipulate (Read/Write) MS Word documents without
installing Microsoft Word. i.e if i dont have MS Word installed on my
machine and i want to add some lines of text into Word document
programatically. How is it possible?


This is possible to a very limited extent. If you create your document with
a range of custom document properties, whose content is reflected in the
document by means of DOCPROPERTY fields, then it is possible to read and
modify the custom document properties of a document without opening Word.

Getting access to the Document Properties of a Word file
http://www.word.mvps.org/FAQs/MacrosVBA/DSOFile.htm

The following article includes a sample project that reads document
properties. You can also look at the sample VB project that is available on
the Microsoft site (linked to from that article)


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
J

Jonathan West

Ahmad Jalil Qarshi said:
hi!

Is it possible to Manipulate (Read/Write) MS Word documents without
installing Microsoft Word. i.e if i dont have MS Word installed on my
machine and i want to add some lines of text into Word document
programatically. How is it possible?

Thanks
Ahmad Jalil Qarshi
This is possible to a very limited extent. If you create your document with
a range of custom document properties, whose content is reflected in the
document by means of DOCPROPERTY fields, then it is possible to read and
modify the custom document properties of a document without opening Word.

Getting access to the Document Properties of a Word file
http://www.word.mvps.org/FAQs/MacrosVBA/DSOFile.htm

The following article includes a sample project that reads document
properties. You can also look at the sample VB project that is available on
the Microsoft site (linked to from that article)
 
K

Kevin Lewis

Yes, Word 2003 allows any Word document to be saved as an XML file.
Therefore if you knew the schema you could create an XML file and have it
open in Word as a Word document.
 

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

Top