Page 1 of 1

How to find the Pages and the Table of Contents?

Posted: Wed Jan 21, 2009 4:54 am
by Cruzader1986
How can I find the pages and the toc inside the document object? Thanks :D

Re: How to find the Pages and the Table of Contents?

Posted: Wed Jan 21, 2009 5:02 pm
by acknak
I expect that you're going to need to be just a little more specific to have a chance of getting a meaningful answer.

What are you trying to do?

How are you trying to do it?

Re: How to find the Pages and the Table of Contents?

Posted: Thu Jan 22, 2009 6:20 am
by Cruzader1986
Oh, I'm using c#.
I already got the TOC with this code

XIndexAccess xindex = ((XDocumentIndexesSupplier)tdoc).getDocumentIndexes();
XTextContent toc = (XTextContent)xindex.getByIndex(0).Value;

But I need to export/save now the toc into a new file. I tried inserting it on a blank document but i always get an error. Help plz