• Exporting Rich text in word

    By Ashish Mehrotra 1 decade ago

    Hi ,

    I want to export the rich text field into the word template without loosing its formatting. I am able to export the document into the word template as I desire but unable to export the rich text field into word .

    Any help is appreciated.

    Thanks and regards


    • By Shyam K Sundar 1 decade ago


      txtRTFieldContent = rtItem.GetUnformattedText()

      With docWord

      .FormFields("Text1").Result = doc.ProjectNumber(0) + " - " & doc.ProjectTitle(0)

      .FormFields("Text2").Result= doc.Duration(0)


      Call appWord.Selection.TypeText(txtRTFieldContent)

      end with