The answer is already in Post # 13/14 above........ If you absorb that and do on your own, you will learn faster. same as you modified print as per your need, which is a big job. The first character is always 0 ..... so you should use :0:6 as parameters in the $$StringPart.
Finally...A6 size invoice Over the Counter...incl of all Taxes... Just want to add the following...Page...1..of..(Total Pages)... unable to do so....Pls assist
So far, not possible, as Tally has not shared the code. However you can make your function to get the TOTAL of pages and use that in the parameters. Unfortunately, function is not my strong point.