• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

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
0
jeboersema
Asked:
jeboersema
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
0
 
jeboersemaAuthor Commented:
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.
0
 
ComputerBeastCommented:
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.

0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
jeboersemaAuthor Commented:
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.
0
 
DarrenSenior Software EngineerCommented:
Hi,

Maybe you should have a look at the Microsoft Office Binary specifications for Word, Excel and Powerpoint etx....

It might give you an idea or two...

http://msdn.microsoft.com/en-us/library/cc313118.aspx

Cheers,

Darren
0
 
jeboersemaAuthor Commented:
Decided to try and digg around into the Office Documentation for help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now