Export to Word: Text wrap doesn't increase height of corresponding label

Posted by: charlie.widdicombe on 30 June 2020, 6:24 am EST

  • Posted 30 June 2020, 6:24 am EST

    I have a report that I am exporting to word using the rtfexport class. One of the fields on the report can be long enough that it warrants wrapping. The issue I am having is that if the textbox wraps the text is placed on the line below but the corresponding label does not increase in height as it would with a normal report. This means that the wrapped text is now in line with the label of the field beneath it, and the field that should be in line with the second label is now pushed on to the line beneath that.

    I was hoping that you would have a solution to help make the label that is aligned with the wrapping text box expand to match it when it is exported.
  • Replied 30 June 2020, 8:47 pm EST


    I am not able to reproduce the issue with the attached report. Could you please check the issue with the same. If issue is not reproducible, could you please share the stripped-down report so that I can replicate the issue at my end.
    Also, share the exact version of AR i.e you are using at your end.

  • Replied 1 July 2020, 2:12 am EST

    I am using ActiveReports 13 in a vb.net environment. We are running a section report and exporting the document using the rtfexport.Export function with the attached report.

           Dim myCertificate As New PT55Certification

    myCertificate.DataSource = {certificationData}

    Dim wordExporter As New GrapeCity.ActiveReports.Export.Word.Section.RtfExport

    wordExporter.Export(myCertificate.Document, wordFilePath)
  • Replied 1 July 2020, 8:25 pm EST


    I am able to replicate the issue at my end. However, it is by design. If you set "Word wrap" to "No Wrap" in Wordpad, it shows the correct output. Also, "Word Wrap" is property of the WordPad, not the rtf document. So it by design to wrap the text if the text does not come under the range of the ruler.

    Hope it clarifies.

Need extra support?

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

Learn More

Forum Channels