WordWrap in HTML

Hi,

I'm evaluating the demo version of FastReport for .NET and I have encountered a problem regarding WordWrap of long text. I have used the properties WordWrap and CanGrow as described in the user manual (set to true) , and when I display the report in HTML, the box is vertically expanded to the correct size to accommodate the text, but the text is not wrapped, it is in single line. This is in IE v.8 and Firefox v.3.5.9; in IE v.7 the text is also trimmed to the horizontal size of the box. I have tested for Textbox and cells in a Table. The report looks good in PDF, so this is only related to HTML export. I am using the demo version of FastReport Editor 1.3.72.

Is this a bug or it can be fixed with some properties settings?

Thanks in advance for any help.

Comments

  • edited 3:00PM
    Hello,

    I have tried to export the first demo report in html, it works fine. How can I reproduce the bug?
  • edited 3:00PM
    Hello,

    Thanks AlexTZ for your guideline, I have examined carefully the output html from the demo report "Simple List" (Employees) and compared to my own report html output and found that I probably have css or jquery error in the page where I am putting the html, which is not related to FastReport.

    However I have noticed one more issue regarding the Word wrapping in html: when the string contains long words with width greater than the Textbox, on the report Preview and PDF export the string is fitted inside the Textbox in several lines even if it doesn't contain blank spaces; but in html it is trimmed i.e. it is not divided mid-word in several lines, unless there is a blank space. For demonstration in "Simple List" if you shorten the Birthdate and Address textboxes to about 1/5 of their original length and set them to CanGrow true, in preview you can see all the letters from the words, but if you open the generated html in a browser the whole words are not divided in several lines.
    Is there a way so I can make the long text look wrapped in html, even if there are no blanks in the string?
  • edited 3:00PM
    Hello,

    I'm afraid there is no way to do this because the report preview, pdf output and html use different text drawing methods.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.