2006 Sep 12 7:45 PM
Hi all,
Currently the client requirement is as follows for a Work Clearance document -
After display of some no. of line items, immediately there'll be a constant title -
Tagging Long text
and then the actual long text is included as a standard text.
In all cases, the title should come along with the long text, on the same page.
So, we put the title and long text include within PROTECT ENDPROTECT, so that if the title is at the end of first page then it'll be sent to the next page to be along with the long text.
But because of this protection, when the long text is greater than a page length, it leaves space in the current page after the line items and starts off on the next page, which is not acc. to client's reqt.
Any pointers regarding this would be helpful.
Regards
Deepthi.
If
Hi all,
Currently the client requirement is as follows for a Work Clearance document -
After display of some no. of line items, immediately there'll be a constant title -
Tagging Long text
and then the actual long text is included as a standard text.
In all cases, the title should come along with the long text, on the same page.
So, we put the title and long text include within PROTECT ENDPROTECT, so that if the title is at the end of first page then it'll be sent to the next page to be along with the long text.
But because of this protection, when the long text is greater than a page length, it leaves space in the current page after the line items and starts off on the next page, which is not acc. to client's reqt.
Any pointers regarding this would be helpful.
Regards
Deepthi.
If
2006 Sep 12 7:50 PM
Hi Deepthi,
1) PROTECT...ENDPROTECT will place all content in same page.
2) If you do want to this happen then remove PROTECT...ENDPROTECT statements. (or)
3) Increase the size of title and long text window larger to fit the total text.
Thanks,
Vinay
2006 Sep 12 8:05 PM
Hi Vinay,
If I remove the PROTECT..ENDPROTECT commands, then the following scenario is a problem -
The last line in MAIN window of current page is the title text - TAGGING LONG TEXT
and the actual long text comes on to the next page.
But the client's reqt is that the title and the long text should be together. Only in this scenario, this text should be moved to the next page to be displayed along with the long text.
Is there any way to know if the end of page will be reached after the title text, so that explicitly, I can call for NEW PAGE and then display the title and long text.
Thanks a lot for your reply.
Regards
Deepthi.
2006 Sep 12 8:33 PM
Control command PROTECT - ENDPROTECT is used to print the content in the same page.But if the data which is in the PROTECT - ENDPROTECT is more than the length of the main window,this would fail.
We need to make sure tha the data can fit in one page.
As in your case data is more than the lenght of the page.
One suggesting you can try is to create a new paragraph with reduce font size and use the same while displaying the text. In this way you will display more number of lines on the page.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |