473,322 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

read each paragraph and its heading with Microsoft.Office.Interop.Word

HI,

I have word file,it content is given below


Job
Chapter 1

<sup>1</sup> In the land of Uz there lived a man whose name was Job. This man was blameless and upright; he feared God and shunned evil. <sup>2</sup> He had seven sons and three daughters, <sup>3</sup> and he owned seven thousand sheep, three thousand camels, five hundred yoke of oxen and five hundred donkeys, and had a large number of servants. He was the greatest man among all the people of the East.

<sup>4</sup> His sons used to hold feasts in their homes on their birthdays, and they would invite their three sisters to eat and drink with them. <sup>5</sup> When a period of feasting had run its course, Job would make arrangements for them to be purified. Early in the morning he would sacrifice a burnt offering for each of them, thinking, “Perhaps my children have sinned and cursed God in their hearts.” This was Job’s regular custom.

4.1 aaaa

4.2 bbb

4.3 ccc

4.4 eeee

<sup>6</sup> One day the angels<sup>[</sup><sup>a</sup><sup>]</sup> came to present themselves before the LORD, and Satan<sup>[</sup><sup>b</sup><sup>]</sup> also came with them.<sup>7</sup> The LORD said to Satan, “Where have you come from?”

Satan answered the LORD, “From roaming throughout the earth, going back and forth on it.”

<sup>8</sup> Then the LORD said to Satan, “Have you considered my servant Job? There is no one on earth like him; he is blameless and upright, a man who fears God and shuns evil.”

9< “Does Job fear God for nothing?” Satan replied. <sup>10</sup> “Have you not put a hedge around him and his household and everything he has? You have blessed the work of his hands, so that his flocks and herds are spread throughout the land. <sup>11</sup> But now stretch out your hand and strike everything he has, and he will surely curse you to your face.”

Chapter 2

<sup>1</sup> Again there was a day when the sons of God came to present themselves before the LORD, and Satan also came among them to present himself before the LORD.

<sup>2</sup> And the LORD said to Satan, "Whence have you come?" Satan answered the LORD, "From going to and fro on the earth, and from walking up and down on it."



Chapter 3



<sup>1</sup> After this Job opened his mouth and cursed the day of his birth. <sup>2</sup> And Job said: <sup>3</sup> "Let the day perish wherein I was born, and the night which said, 'A man-child is conceived.' <sup>4</sup> Let that day be darkness! May God above not seek it, nor light shine upon it. <sup>5</sup> Let gloom and deep darkness claim it. Let clouds dwell upon it; let the blackness of the day terrify it.





In this part i need each paragraph with particular heading.



foreach (Microsoft.Office.Interop.Word.Paragraph para in Document1.Paragraphs)

{

Content=para.Range.Text;


}

how can i get the particular heading of each paragraph.if we take any paragraph under chapter 2 .Its heading should be chapter 2.how can we achieve this??? how can i get the heading if there is style applied on the header??



Thanks in advance
Aug 16 '11 #1
0 1406

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ruslan | last post by:
Hi, I use Microsoft.Office.Interop.Word in order to generate word documents. On my computer it works well. When I put it on a new computer with Windows 2003 an "Access Denied" message...
1
by: bracoute | last post by:
Hello.... can you plz help me ... i'm using vbscript in asp.net and i've referenced the microsoft.office.interop.word.dll so that i can use the wordApplication object to automate MS Word.. the...
1
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
1
by: Alan T | last post by:
VS 2005 and MS Office 2003 installed. I can include Microsoft.Office.Core and Word in the references so I can add the using Microsoft.Office.Interop.Word. However, my workmate cannot do the...
9
by: sajithkahawatta | last post by:
my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only...
0
by: chovatia.jaydeep | last post by:
Hi, I want to hide Menubar/Toolbar in Word/Excel 2007. I followed steps given in the link: http://msdn2.microsoft.com/en-us/library/aa338202.aspx Following above linke, i created Add-In...
0
by: kalyanilovesme | last post by:
how to import that name space(Microsoft.Office.Interop.Word) in asp.net with c#.. i added the reference of microsoft.office11.0.object library even though this name space not coming...
1
by: mac73 | last post by:
Hi, I am using asp.net 2.0 application with Microsoft.Office.Interop.Word version 11.0.0.0 on windows server 2003 with IIS 6.0. It works fine with access given to Network service. The scenario...
1
by: PulkitZery | last post by:
Hello! I am looking to find Microsoft.Office.Interop.Word dll for Office 2007, to include it into my project’s bin folder. I tried to download it from : ...
0
by: jojee | last post by:
Hi All i have a little problem in my project that is i m using word document for reading the contents from it so i did add the references Microsoft.Word.Object library and in the wen.config file i...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.