Link to home
Start Free TrialLog in
Avatar of jeboersema
jeboersemaFlag for South Africa

asked on

Determine Formatting in Word Document

Hi

I need to write an application whith which I open and read a Word Document. How can I get the formatting for a specific paragraph, i.e font type, font size, font color and text styles from the word document ?

An example would be very helpfull.

Regards
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Avatar of jeboersema

ASKER

Although the mentioned article cover some of the topics on Word Automation it only covers the creation of Word files. My question is about reading an existing Word file and the formatting in the Word document.

Thanx for the reply though.
In Word 2007 execute the following steps:
1. Open the document.
2. Select the Home tab.
3. Select the text that you want to format.
4. Now, select a required option in the Home tab in a specific ribbon. For example, you can modify Font properties by selecting a required option in Font ribbon, paragraph properties by selecting the option in Paragraph ribbon, and so on.

None of the solutions provided above actually answer the question. The question was:

I need to write an application whith which I open and read a Word Document. How can I get the formatting for a specific paragraph, i.e font type, font size, font color and text styles from the word document ?

Note: I am trying to do this in code, not with the application supplied by Microsoft.
ASKER CERTIFIED SOLUTION
Avatar of Darren
Darren
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Decided to try and digg around into the Office Documentation for help.