Search code examples
xtrareport

XtraReport text overflow cutting text in half vertically


I have an XtraReport that overflows text on to the next page but occasionally cuts the last line of text from the first page in half when it does.

I would normally handle this with the height property of the text area but I am unsure how to target a specific table row of an XtraReport to work out what the remaining height of the page is to achieve this or whether that would even work in this instance.

I'm rather hoping there's a simple work around to achieve this, please don't go too much out of your way to help out as I won't be investing much development on this.

enter image description here

I don't think there are any settings I have missed within the designer, perhaps there's a golden font size or line height that the reports want to overflow correctly.

Any help or direction would be greatly appreciated, thank you.

If there is no simple way, I will just have to loop through the tr / td tags and see if by manipulating the height I can find that sweet spot, i just worry that it will hide page 1 but still be split on page 2.

enter image description here enter image description here


Solution

  • It seems to me that you use the ASPx/MVCx -DocumentViewer, this control shows you a html content which is not suitable for pixel-perfect documents. I recommend you to try the ASPx/MVCx WebDocumentViewer which is like the the Google Docs shows pixel-perfect document and more convenient with bootstrap and other progressive web frameworks.

    here are demo and docs.