How to calculate number of lines?
-
Issue:b> Want to calculate number of lines per page approx. 60 lines per page, while printing from HTML data stored in a Hidden field. Description: In my project I have created html from database and get it into an hidden field from code behind. Now, at client side I am fetching the data according to the conditions. Now, I want to count the sixty lines per page. Can anyone tell me the solution?
-
Issue:b> Want to calculate number of lines per page approx. 60 lines per page, while printing from HTML data stored in a Hidden field. Description: In my project I have created html from database and get it into an hidden field from code behind. Now, at client side I am fetching the data according to the conditions. Now, I want to count the sixty lines per page. Can anyone tell me the solution?
Check this[^],it's only idea how can you find solution. By the way why you made all underline and bold your question?
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
-
Issue:b> Want to calculate number of lines per page approx. 60 lines per page, while printing from HTML data stored in a Hidden field. Description: In my project I have created html from database and get it into an hidden field from code behind. Now, at client side I am fetching the data according to the conditions. Now, I want to count the sixty lines per page. Can anyone tell me the solution?
I think I understand your question. Let's say you read 100 lines from your database and you want to display them on a page with a maximum of 60 lines per page. Try something like this:
Lines = 100
Page = 0
PageSize = 60While Lines > PageSize
Page = Page + 1
... Load your HTML PageData ...
Lines = Lines - (PageSize)
EndPage = Page + 1
-
Check this[^],it's only idea how can you find solution. By the way why you made all underline and bold your question?
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com
I want to know number lines while printing on the paper. To know the number of lines in a file is hardly helpful in my case. I have marked and underline my question to better understanding.
-
I think I understand your question. Let's say you read 100 lines from your database and you want to display them on a page with a maximum of 60 lines per page. Try something like this:
Lines = 100
Page = 0
PageSize = 60While Lines > PageSize
Page = Page + 1
... Load your HTML PageData ...
Lines = Lines - (PageSize)
EndPage = Page + 1
No, actually I have all html data in an hidden fields. Your solution is a good for static data but I need to print rendered data