Print Page X of Y
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
What logic should i use if i need to print Page X of Y in Reports using I4gl. thanks in advance... Sent via Deja.com http://www.deja.com/ Before you buy.
On Sat, 12 Aug 2000 04:23:26 GMT, heyram@my-deja.com wrote: >What logic should i use if i need to print Page X of Y in Reports using >I4gl. This should be a FAQ. print the current page X on every page, but print a token for Y on every page. Count the tokens and replace them in a system command after the 'finish report' command, e.g.: report_file: Page 1 of %page_number% ... Page 2 of %page_number% finish report myreport let command_str = "perl -pi -e 's/%page_number%/",num_pages,"/' report_file" run command_str If the report was going straight to a printer or a pipe, then it'll get slightly more complicated. HTH, Douglas Wilson