How to ADD "TOC" in word document through C#

A

arun

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
 
C

Cindy M.

Hi =?Utf-8?B?YXJ1bg==?=,
My need is to add TOC in word document which is going to populate through
content of Sharepoint list.
I think the best place to start with this is a SharePoint forum. And
whenever you post such a question you need to supply the version of the
applications involved (in this case, of Word and Sharepoint).

As far as I know, there is NO facility in Word that supports this. That
means you're going to need to harvest the information from Sharepoint and
put it directly in the Word document.

If you already know how to harvest the information and need help putting the
information into the Word document, please be more specific about where and
how the information should appear in the Word document.

Please also note that this newsgroup is for VBA questions, which is why
you've not received any response. Unfortunately, in the web interface it's
labelled "Word Programming" <sigh> There should be a second "Word
Programming" entry that takes you to a word.programming newsgroup. Another
possibility would be to use the office.developer.automation newsgroup

http://www.microsoft.com/office/community/en-us/default.mspx?
dg=microsoft.public.office.developer.automation&lang=en&cr=US

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top