Word cut off to next line

Posted by: renu.ap on 30 October 2017, 10:32 pm EST

    • Post Options:
    • Link

    Posted 30 October 2017, 10:32 pm EST

    I am having a telephone number at the end of paragraph. When it comes to end to the line if there is no space for it then it cuts half of the phone number to next line.

    Contact me at 1-800-999-

    9999.

  • Posted 30 October 2017, 10:43 pm EST

    I am using Activereports 11.0 and SectionReport.

  • Posted 31 October 2017, 4:52 pm EST

    This is the default behavior. If there is no space, it will wrap the text. What output do you wish to see in this scenario?

  • Posted 31 October 2017, 6:15 pm EST

    I expect following output,

    Contact me at

    1-800-999-9999.

    Instead of telephone number split in middle. It should be considered as whole word and set in next line instead of splitting. I set wrapmode as WordWrap.

  • Posted 1 November 2017, 10:57 pm EST

    This looks like the default behavior of .net. You could try using a non-breaking hyphen as suggested here - https://stackoverflow.com/questions/7691569/no-line-break-after-a-hyphen

  • Posted 2 November 2017, 9:05 pm EST

    :slight_smile: I did already. But while printing in paper it appears bad lots of space after hyphen. even tried RichTextBox with nobr, nowrap too. nothing working.

    FYI we didnt have this issue in AR6. Now when we migrated to AR11 we are facing this issue. there should be some feature provided to disable it whenever wherever needed.

  • Posted 5 November 2017, 10:12 pm EST

    Since AR uses the .net APIs, it produces the same output. I’ll still get in touch with our development team and find out if there’s a way to achieve this. But before that, could you please send across your report file where I can reproduce this issue. You would have to zip the report file.

  • Posted 6 November 2017, 8:51 pm EST

    Unfortunately i can`t provide actual reports due to security constraints. Here is the sample mockup paragraph,

    It should display like below

    If you have any questions about your policy, please contact your representative.
    ABCAAAAAAAAA, by phone at 999-999-9999 or with Customer Service at 
    9-999-999-9999.
    

    But it displays as

    If you have any questions about your policy, please contact your representative.
    ABCAAAAAAAAA, by phone at 999-999-9999 or with Customer Service at 9-999-999-
    9999.
    
    
  • Posted 8 November 2017, 9:28 pm EST

    Hello,

    I used the non-breaking hyphen in RichTextBox in its Html property and it worked. The phone number did not break at the hyphen. I’ve attached a sample report for your reference with the text you had sent. Kindly check.

    RichTextBox_NonBreakingHyphen.zip

  • Posted 9 November 2017, 12:06 am EST

    Even i did this too. In PDF it looks fine. But while printing it looks bad with lots of space between hyphen. May be its due to Unicode character. We use XEROX printer. Could you please print in paper and see the same. ?

  • Posted 13 November 2017, 9:54 pm EST

    I printed on paper but observed the same output as before. I’ve printed on a Canon printer and have attached a scanned copy of the printed sheet. Does printing the report that I sent last time, also has lots of space between hyphens?

    Non-breakingHyphen.zip

  • Posted 16 November 2017, 4:07 am EST

    I used Xerox D125 Printer FFPS PCL6. I didn’t try your report printing. maybe printing will be based on Unicode character support. I managed it with some workaround by using windows forms textbox. I just created textbox object and set its properties like font, size and other settings. Assigned text to it. The Same issue came in it also. Fortunately, there was an option to get the line and last index of it using the GetLineFromCharIndex method. Wondering why such features are not available in ActiveReports library.

  • Posted 20 November 2017, 4:41 am EST

    Since ActiveReports is a reporting tool, there will be differences in the native .net controls and the ActiveReports controls. Many features may not be supported due to the architecture of the reporting tool and which may not be relevant.

  • Posted 7 December 2017, 1:58 am EST

    We also are having issues with words being cut off at the end of a line instead of wrapping to the next line. It wrapped to the next line in version 6 of Active Reports. With our upgrade to version 11 it no longer auto wraps but instead gets cut off. What is the solution? Thank you

  • Posted 7 December 2017, 5:00 pm EST

    Hello,

    We have responded to your query over another thread that you created: https://www.grapecity.com/en/forums/ar-dev/text-being-cut-off-instead#hello-mikefrom-your-previo_3

    Thanks,

    Ruchir Agarwal

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels