Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

How to set a file as non-generated?

$
0
0

I have a script that creates a new book and adds a chapter to it by defining a New BookComponent Object. However, when I try to set up a Table of Contents for the new book, I get the error "Couldn't update this book, because it contains no openable non generated files." I set the BookComponent.IsGeneratable property to 0, but that doesn't seem to resolve the error.

 

Update:

The problem was that I was setting the BookComponentType property as Constants.FV_BK_TEXT. Changing it to Constants.FV_BK_FILE solved the issue.

 

Message was edited by: Varun Shah


Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>