on 12-13-2013 6:27 PM
Hi All,
i have done a Forms with just one Master Page and a Body Page.
According the amount of data it can show even or odd pages.
If the last page is odd, I want print one page more in order to have always even pages... i tried to work with Pagination and Placement
but also i put at the end of the body page a subform placed in a next page and put a javascript in it
if( xfa.layout.page(this) % 2 !== 0){ this.presence = "hidden"; }
but seems it is not able to retrieve the number of page
Do you have some suggestions?
Thanks a lot
Massimo
Hello Massimo,
I have a question to you.
1.Are you following Duplex printing?
2.In case you are following Duplex printing , then you can check the option provided in Pagination tab of master page.Select Front even pages and Odd back pages.Thus when content ends on Odd page,yu still have an even page at the back of that odd page.
3.Incase you are having only Non-Duplex printing then create a master page,which triggers only when you have a ODD count of pages.
To achieve this functionality follow the below process:
1.Append a import parameter which is optional to the interface.Eg page_count type char1 optional.
2.To get this count you need to call the dynamic FM twice.
First time when you call the dynmic FM "LV_Fname(for example)" collect the FPFORMOUTPUT-PAGES gives you total number of pages.During first call of the dynamic FM the import parameter "page_count" is commenter.
3.Now check if the page_count(total no.of pages) is even/odd. If its odd pass the flag as "X"
3.During the second call of dynamic FM , pass the page count obtained above to the import parameter of the interface.
4.Now at design level of the form,create a NEW master page and on the layout ready of this master page write form calc as when the import parameter is active "X" , then show this master page.
Else hide this master page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Massimo,
In case of odd number of pages, you need to print an empty page in end?
Could you please let us know the purpose of printing even number of pages?
thanks,
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Massimo,
Is there any field, like totals which you are displaying at end of the page? I am asking to get the page number, where we are getting the final page.
Once you get that final page and it is odd number.
1. create a empty page and place another subform on it. (make subform as 'Hidden')
2. Trigger this subform (make it visible) when final page number is odd
Thanks,
Rakesh
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.