I gave the solution for rolled paper, not pages (fanfold or otherwise). For rolled paper, there is naturally no concept of next page. If you are printing to pages of fixed height, using a data report and setting report height would be the best solution.
If you want to print from a text file and the printer moves onto next page, check if you have inserted a Form feed character at the end of your text file. Remove any such character.