Can anyone point me to some code or tutorials which explains how to convert output on a webpage into a neatly formatted paginated style which will print on A4 size paper.
Good article here. Same thing I would suggest. Convert to PDF....