Printing Whole Page

To print the page I have created a simple button that will call a nanoflow.   The Nanoflow will only contain a javascript action .In Java script action I have added one funtion that is window.print But after running the app when I am Clicking the print button It is not taking the full page to print rather it is printing the snapshot of the window. . FYI this page is a ong page with scroll containers. How to print the whole page?  
1 answers

Instead of creating your own js function, have you considered using the document generation module which also fits your use case?