Skip to Content
0
Aug 09, 2016 at 05:34 PM

Pagination and newsPaper columns

114 Views

Hello,

I have a dataWindow that is basically a phoneBook style list of addresses using a tabular dataWindow and newspaper columns set to 5. They are sorted by state, city, person name. For the most part it works ok, except that I want a page break on state. I have New Page on Group Break turned on, but what it does is start the state in the next available column. If the column is column 5, it starts on the next available page. What I want is for it to start on the next available page regardless of what column it is in.

I have written code to get the print out correct, using a manual print job and filtering to each state and calling printDataWindow() in a loop. But, this leaves me a print preview that the user thinks is wrong even though the actual print will always be correct. I have also thought about trying to create logic to insert blank addresses into the list that would force the state change to always be in the 5th column, but that is a truly tedious effort.

Is there a straight forward trick to get the look I want or am I going to be stuck with coding a loop no matter what?

Thank You,

Christopher