I have a variable page book (between 50-70 pages) that I would like to add a page count to the output file name. So far I have been able to add 3 fields to the file name: ID, first name and last name. When I try to add a field for page count and compose the book, the output file name looks like this: "0_1234_FNameLname.pdf". The page count always comes up as being "0". I have the following rule running at record start (-minus the page count field):
if (FieldChanged("ID"))
FusionPro.Composition.OpenNewOutputFile(Field("ID") + "_" + (Field("First Name") + (Field("Last Name") + "." + FusionPro.Composition.outputFormatExtension)));
This works fine but need to add page count to the beginning of file name. I do have the callback rule for "onpagecount" running as well. Please let me know if any other information is needed. Any help would be greatly appreciated.
Thanks, Sean