I am creating a report that contains a table of data from numerous  
files. On all pages but the first, there is a line of text containing  
the names of the table columns. When processing each new file, I first  
issue document.newPage(), which causes the page event handler to print  
the column names. That works great until the last file; I'm getting an  
extra page at the end that contains nothing but the column names.

My question is: how do I know I have no more data? Instead of
calling  newPage(), I'd just close the document and avoid that extra
page.

Thanks for the help.


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Reply via email to