• 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

    Ashish

    • By Shyam K Sundar 1 decade ago

      try

      txtRTFieldContent = rtItem.GetUnformattedText()

      With docWord

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

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

      .BookMarks("Text3").Select

      Call appWord.Selection.TypeText(txtRTFieldContent)

      end with