AnsweredAssumed Answered

How can create table of contents of PDF File?

Question asked by happyho on Mar 3, 2015
Latest reply on Mar 5, 2015 by philmodjunk

Title

How can create table of contents of PDF File?

Post

Hi All,

I am new in FM, Now I am using FM 13 Trial.

I am  trying to create Table of Contents or Index pages before I export PDF file. I read one post on the internet. It shows me the code: 

Show All Records 
Loop 
        Enter Preview Mode 
        Go to Record/Request/Page [ Last ] 
        Set Field [ Products::gPage; Get ( PageNumber ) ] 
        Enter Browse Mode 
        Go to Record/Request/Page [ Last ] 
        Set Field [ Products::Page; Products::gPage ] 
        Omit Record 
        Exit Loop If [  not Get ( FoundCount ) ] 
End Loop 
Show All Records

but I am afraid it will take long time to do because the found set nearly 100 records. In that way, I have to omit one by one, It is not good when the found set is large.

Is the any different way to do?

Many thanks

 

Outcomes