I'm automating Word to create a new document where I'm building the document from blob fields within a Firebird database. Everything works fine until I try to insert text followed by RTF content while preserving the RTF formatting. What I'm trying to end up with might look like this.
III.3a) The is the RTF formatted text.
The 'III.3a' is plain text from a VarChar field but the rest is RTF stored in a blob. When trying to get them both to appear on the same line, the RTF seems to be overwriting the plain text.
I can do this in C# or Delphi; language doesn't matter. Here's some Delphi code with the RTF stuff having been read into a Delphi TRichEdit component. WordDocument is a Delphi TWordDocument component.
WordDocument.Paragraphs.Last.Range.InsertAfter('III.3a) ') ;
Thanks for any help.... If you can provide a working snippet, I'll name my next 4 children after you.