In VFP report writer, I need a cover page generated if the invoice goes more then 1 page. How do I do this?

In VFP report writer, I need a cover page generated if the client's invoice goes more then 1 page.  
Of course the cover page must come before the actual invoice and contain the amount due.  

How do I do this using  VFP Ver 9 latest patch?
Peter H.Asked:
Who is Participating?
 
pcelbaCommented:
Let suppose you know the number of pages in advance. Then you may define two reports - one you have already and a new one containing the Title band where you may put everything you need.

If you don't know the number of output pages in advance then it is more work, OTOH you can have just one report having Title band of variable length. I've tested it with this field in the Title band:

IIF(_PAGETOTAL>1, REPLICATE(CHR(13)+CHR(10), 80), "")

which says "If the total number of pages is greater than 1 print 80 empty lines in the title band" thus the report itself starts on the second page.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.