View Single Post
 
Old 12-04-2012, 09:13 PM
ramsgarla ramsgarla is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Sep 2012
Posts: 21
ramsgarla is on a distinguished road
Default

My requirement is to generate a report which could range upto 1000 pages
and will have lots of tables in it.

It's a business need that tables having too many rows and which cannot be accommodated in a single page will have to flow to next page and cannot be broken.

So, preventing the cells spanning page boundaries is not desirable.

Having said that, some times, i find an empty table row on a page in RTF file which (as you mentioned) would have got crossed the page boundaries.

My main problem over here,i need to ensure that there are no empty pages or pages with empty table rows in the report. If there are any, then i need to get rid of them by removing these kind of blank pages.

For the same reason, i am iterating through the whole RTF document page by page searching for blank pages and removing them.

I need to achieve this programmatically.

This is where the problem lies, where in it is not able to identify pages with empty table rows or cells, becoz a part of the text gets selected from previous page resulting the current page not to be considered as a blank page. But, actually, it's a blank page.

Any help in resolving this issue would be great.
Reply With Quote