09-08-2015 9:58 AM
Dear Experts,
I have a requirement for page number printing in a purchase order smartform.. total no of pages are 8. I created a page for my organization purpose which i made it as first page which is not for printing.. while printing they will not print the first page... So I need to exclude page number of first page .. from second page i need to print the page number as 1 of 7...
2 of 7
3 of 7
4 of 7
5 of 7
6 of 7
last page must be 7 0f 7
Pls help me in achiving this.. Thanks in advance.
09-08-2015 3:00 PM
Hi Chaitanya,
describe the no of pages you have. then subtract 1 from that and move it in a variable.
then start printing the pages from page 2 onwards (set the starting page always as 2) and then increment the page nos.
Hope this helps.
Regards,
KS
09-08-2015 3:00 PM
Hi Chaitanya,
describe the no of pages you have. then subtract 1 from that and move it in a variable.
then start printing the pages from page 2 onwards (set the starting page always as 2) and then increment the page nos.
Hope this helps.
Regards,
KS
09-08-2015 5:01 PM
09-08-2015 3:24 PM
Hi Chaitanya,
Here you can make use of system variables sfsy-page and sfsy-formpages , do some mathematics and put in back into some variables to use it.
Regards,
Shadab.
09-08-2015 7:00 PM
Hi dear,
In smart form you will get both variables current page and total pages in system variables , you have to just take both in code segment and subtract 1 from them.
09-09-2015 7:37 AM
Hi,
User Two variables and subtract one .
L_Total = sfsy-formpages - 1 for Total no of pages
L_Current = sfsy-page -1 for Current page no
Salil
09-09-2015 1:16 PM
Hi sail.. i have a small query..
if i use local variables in code object.. its value is getting zero... and if i use 2 local variables can i display in text element like L_CUEENT OF L_TOTAL..
09-09-2015 7:45 AM
Hi,
while printing the first page, page no.. Put condition to skip.
Remaining you can print as below
&sfsy-page&-1 OF &sfsy-formpages&-1
Regards,
Praveen