special formatting MS WOrd / Rich Text is lost

Posted by: mosesmwalye on 4 August 2017, 2:33 pm EST

  • Posted 4 August 2017, 2:33 pm EST

    Im using the RTF ReplaceField method for a mail merge function.

    The original file (template)  is a richly formatted MS Word document, which I save as RTF with the necessary fields. Everything works well.

    BUT...the special formatting like Tables, and lines drop out when the report is created in ActiveReports. It seems to me that only the most basic text formatting is handled by the RTF.

    Anybody knows how to work around this? Anyway to for example replace fields in an OLE file that has been loaded by OLE1.CreateEmbedded App.Path & "\TestDocument.Doc" ?

    Thanks

    moses




  • Replied 4 August 2017, 2:33 pm EST

    Hi Moses,

    The RTF control provided for ActiveReports 2.0 is limited to basic rich text and doesn't include the enhancements provided by MS Word. I am unaware of any functionality included with the OLE control that would allow replacing text inside of the Word Document.
  • Replied 4 August 2017, 2:33 pm EST

    Thanks Brandon
    (for confirming my worst fears ha ha ha)

    Anyway, the best I can think of now is using MS Word mail merge functionality, which of course has nothing to do with ActiveReports....

    moses
  • Replied 4 August 2017, 2:33 pm EST

    Just an FYI if your company plans on migrating to .NET soon... ActiveReports for .NET 2.0 supports tables and table borders in the RTF control. This is a feature that's exclusive to the .NET 2.0 version. The other cool thing it does is HTML to RTF conversion so you can render HTML on your report with .NET. Again, this will be exclusive to the .NET 2.0 version and not included with any other ActiveReports version or platform.
Need extra support?

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

Learn More

Forum Channels