No, it isn't in the OnLoad code, it is in the event handler for a button.
The idea is that the user click on the button to print the form. My code then checks that there aren't any validation errors, switches to the first print view, prints it, switches to the second print view, prints it and then switches back to the data view.
--Philip