Page Numbers Display on Each Page header of Ledger Report

That for, you have to develop the custom script report and develop it in the HTML file. you can check the code in the general ledger report.