Invoice Continuation totals

if anyone has done html coding in invoice for printing carried forward and brought totals of qty and amount in case of multiple page invoice i shall be grateful if you can share the same,