on 05-08-2014 3:09 PM
Hi Gurus,
Here is a challenge for all scripters 🙂
I have in an adobe form a longtext. I want to check in the text field via javascript or formcalc how many lines the text field contains.
And if at a certain position coming more than 3 lines make a pagebreak.
Thus 3 question I would have:
1. How to get the actual line
2. How to get the number of lines which are still coming
3. How can I trigger a pagebreak in script
Hoping getting good answers!!
Thanks+Regards
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also in abap (form interface) convert the text into a table of string with maybe 100 chars each and let the layout adjust the number of lines it can show in that page, passing the remainers to the next page.
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi think miguel is right,
why don't read the characters and do a middle-value.
Something like if there are more than 200 characters in, do a page-break.
In this case you could also split the text into two parts and have it with a pagebreak between.
Of course, you have to split it in a proper way, Sentences Words whatever...
Doesn't sound that hard to script to me.
~Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I dont belive you can do that. I think you can count the field characters but not the lines it will take. Cant you make it break into the next page?
Miguel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.