Manipulating Word files.

  • Thread starter Thread starter pontifikas
  • Start date Start date
P

pontifikas

I'm having hard time finding documentation for Word.Document or
Word.Application classes and there is something I need to do.

I want to know how to read from a word file and how to maintain
formatting(Bolds, itallics etc).

Also can I write , say bold, characters in a word file?How?

Thanks in advance :)
 
pontifikas,

Check out the section of the Visual Studio Tools for the Microsoft
Office System documentation titled "Automating Word Using the Word Object
Model", located at (watch for line wrap):

http://msdn.microsoft.com/library/d...l/wroriautomatingwordusingwordobjectmodel.asp

Also, here is the link to the object model for Word (for Office XP):

http://msdn.microsoft.com/library/d...re/html/deovrMicrosoftWord2000.asp?frame=true

Finally, the installation of Word that you have should have the Visual
Basic reference installed (you can get it from help from the macro editor).

Hope this helps.
 
That helped quite a bit, however I'm still not able to do sth.

I have a .doc with some words that start with "@",
I want to find all these words and replace them with sth else.
How do I read a .doc word by word and ,if I have to replace it , keep
its formatting(e.g Bold)
 
Back
Top