Book a Demo

Author Topic: ReplaceField method has very strange effect  (Read 2901 times)

Screwtape

  • EA User
  • **
  • Posts: 93
  • Karma: +4/-0
    • View Profile
ReplaceField method has very strange effect
« on: September 21, 2014, 06:43:48 am »
Hi.

I'm generating a RTF document with JScript.

I've put a data field in the template, and am using ReplaceField to update the value just prior to calling DocumentElement. When I do this, I keep getting Bell sounds and the document had the field replaced, not with what I specified, but several element names and descriptions.

If I comment out the ReplaceField method, it all works fine and just prints the default for the data field each time.

Very strange.

Anyone suggest what I might be doing wrong?
« Last Edit: September 21, 2014, 06:45:21 am by Screwtape »
Screwtape