Ok, my advice won't work then. If we don't know ahead of time the size of each section, my method won't help you.
I'm not sure why "Separate views with: Page break" is not working.
I don't know much about coding, but would the code allows you to print one view first, then run the code again to print the second view? This would likely result in forcing a page break.