Good afternoon, let's say you have a report on an A4 sheet, and print several stretches of time. eg
Last month, I started printing the first part that held four rows of my sheet right?
So I keep that line number 4 for another day to go to print this same sheet from line 6 for example. So I'll stop storing wherever that is my impression, my bottom line will always be saved.
Well, say I is positioned in the example we are working, line 10 to the printed sheet, then I'll have to start printing from line 11 on the same sheet and say that this new print has four more lines and makes a total of 15 lines is correct?
This is where my problem starts, I need a command text editor that let me know in real time I'm in line 15 before I do the printing on the sheet.
So I'm asking what command I could use when I stand in the example above, in line 11 and insert the text with 4 lines and 15 will add the final line.
What is the command for me to get that final number of online date before requesting the printing process itself?
What's more a problem when I get to the bottom of the sheet and include a text that will go to next page
Ceprotec Referring to page counter
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I am not sure that I understand you correctly.
As I understand, you want
- to print some lines;
- then, after some time, to add new lines to the document,
- to print these new lines on the same paper, without printing the old lines.
It is possible using TSRichViewEdit's properties MinPrintedItemNo and MaxPrintedItemNo. They define a range of items to print.
For example, you print some document and store LastPrintedItemCount := SRichViewEdit1.RichViewEdit.ItemCount.
Then you add some new lines to the document. To print them, assign SRichViewEdit1.MinPrintedItemNo := LastPrintedItemCount. Then again, store LastPrintedItemCount := SRichViewEdit1.RichViewEdit.ItemCount, and you can continue many times.
As I understand, you want
- to print some lines;
- then, after some time, to add new lines to the document,
- to print these new lines on the same paper, without printing the old lines.
It is possible using TSRichViewEdit's properties MinPrintedItemNo and MaxPrintedItemNo. They define a range of items to print.
For example, you print some document and store LastPrintedItemCount := SRichViewEdit1.RichViewEdit.ItemCount.
Then you add some new lines to the document. To print them, assign SRichViewEdit1.MinPrintedItemNo := LastPrintedItemCount. Then again, store LastPrintedItemCount := SRichViewEdit1.RichViewEdit.ItemCount, and you can continue many times.
Ceprotec Referring to page counter
Good morning, in fact I'll try to explain once more what I need. I have a document with 40 lines written. In a few days I will need to add a few more lines on the document.
Let's say that the new lines added to a total value of 5 lines and i have a total of 45 lines in this document right???
Well, the command that returns the page number and the last line number used in this document that actually had me return in this example:
page 1
line 45
so what I need, faithfully command that returns the page in the final and the final line which appears in the edited document, before I do the printing of this document.
Because I need two of these two information
when the document is edited before I FAPA printing this document.
I think it's better now right?
Hug and thanks
Let's say that the new lines added to a total value of 5 lines and i have a total of 45 lines in this document right???
Well, the command that returns the page number and the last line number used in this document that actually had me return in this example:
page 1
line 45
so what I need, faithfully command that returns the page in the final and the final line which appears in the edited document, before I do the printing of this document.
Because I need two of these two information
when the document is edited before I FAPA printing this document.
I think it's better now right?
Hug and thanks
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Fist, if you want to print new lines of document on the same paper sheet as it was used to print the previous part of the same document, please reread my previous answer.
Below are the answers to your questions, but they are useless for implementation of the task described above.
Page number: Obviously, the last line is on the last page, so this page is srv.PageCount.
Line number: do you need to total line count, or the line count on the last page? If the former,
Below are the answers to your questions, but they are useless for implementation of the task described above.
Page number: Obviously, the last line is on the last page, so this page is srv.PageCount.
Line number: do you need to total line count, or the line count on the last page? If the former,
Code: Select all
with srv.RichViewEdit do
r := GetLineNo(ItemCount-1, GetOffsAfterItem(ItemCount-1))