jeboersema
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
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
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.
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.
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.
ASKER
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Decided to try and digg around into the Office Documentation for help.
http://www.codeproject.com/KB/cs/Simple_Ms_Word_Automation.aspx