Hi everybody.
I´m trying to Create a Table of Content from a File. I have following code so far.
var gvBookVar = app.NewNamedBook("tempXXXX.book"); | |
var gvBookComp = gvBookVar.NewSeriesBookComponent(0); |
gvBookComp.BookComponentType = Constants.FV_BK_NOT_GENERATABLE; | |
gvBookComp.Name = docName; |
var gvTocBookComp = gvBookVar.NewSeriesBookComponent (0); |
gvTocBookComp.BookComponentType = Constants.FV_BK_TOC; | |
gvTocBookComp.Name = docName+".TOC"; |
var gvExtractList = ["Ueberschrift 1 Seite BildSeite", "Ueberschrift 1", "Ueberschrift 1 mehrzeilig BildSeite"]; |
gvTocBookComp.ExtractTags = gvExtractList; | |
gvTocBookComp.GenerateInclude = true; | |
gvTocBookComp.InsertLinks = true; |
gvBookVar.SimpleGenerate (true, true); |
I am creating a Book tempXXXX.book.
Then i add a Book component with the name of one opened Document, then i create an empty component with the ending toc.
After that i create a ExtractList ( for what to extract)
And use SimpleGenerate for FrameMaker to fill the TOC File. But its not working.
And i couldn´t find any tutorials online for this particular problem.