on 12-19-2008 1:06 PM
Hi ,
We print picking list in smart form. Every Picking number will have many items, so we have to divide them into several pages, and show the page number like format "current page/total pages", since we will
print many picking list at one time ,and every picking number has it's own "total pages" , so we can not use system variable to identify the pages, we have to count it .
The problem is: in the item lines, there are description fields with variable length, some items may be printed in one line, some may be printed in two lines, the descritpion fields contain chinese characters or/and english characters, it's quite difficult to know if the description will be printed in several lines or not. so it's difficult to count the total pages.
Anyone can help about this? thanks very much!
Regards
Pole
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for all your reply, we will try.
Regards,
Pole
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
i came across the same problem ...
i assumed that items will not be more than 100 ....
my one page contains almost 50 items ...
so i heard coded like if number of items is more than 50 then in page1 print 1 of 2 and in second page 2 of 2 .
if items are less than 50 only one page and print 1 of 1 ...
decide number of lines u can print in one page .... i think then u can do some thng ...
hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use sort event for the picking number in the Data tab of the table node and use program lines to add to a counter ( local variable ) inside the table node and then clear once for each new picking number.
And display it wherever it is to be displayed.
Regards,
Ram
Edited by: Ramakrishna Peri on Dec 22, 2008 10:28 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To print the pages create a window of type Final Window, Final window is executed at the last so here when u use sfsy-formpages it will give u the exact number of total pages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi,
>
> Create one window of type Secondary window. in that u can specify
> SFSY-PAGE / SFSY-FORMPAGES.
>
> Here SFSY-PAGE-------Current Page
> SFSY-FORMPAGES------Total no.of Pages
Read the Question Properly before you answer it.
For every new picking number, the page numbers and total page numbers need to change.
To the OP(Original Poster), Ramakrishna's answer is what you should look into.
Vishwa.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.