A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Ho to ADD "TOC" in Word file through C#



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2008, 09:55 AM posted to microsoft.public.word.tables
Arun
external usenet poster
 
Posts: 267
Default Ho to ADD "TOC" in Word file through C#

Hi All,

My need is to add TOC in word document which is going to populate through
content of Sharepoint list.
Let's an example

Sharepoint list having three columns.
1 Comapny Name
2 Location
3 No of Employees
i.e in list, the contents are storing like this.(2 rows n 3 columns)
Microsoft India 1000
Sun Microsystem USA 1100

In my TOC, only company name should be there with page number.

like..

Table of Content

Microsoft..............1
Sun Microsystem..2

On next page or on same page, Content should be some what like this--
Microsoft
India
1000

Sun Microsystem
USA
1100

So Dear friends, Kindly send code for this...

Thanks in Advance



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.