Method try/catch for keeping inappropriate mergefields

8 views
Skip to first unread message

Nicolas Micoud

unread,
Dec 28, 2016, 5:36:57 PM12/28/16
to xdocreport
Hi,

I create a class 'Bureau' (Organization) in which i put different methods :
  •  getName()
  •  getPhone()
  •  getLocationFull()
  •  getCity()
  •  ...
 
In the word template, i added $Bureau.Name, $Bureau.Phone, ... It works well !
 
Is there a way to use a kind of try & catch which will allow to see which merge fields is not handled in the code ?
That would allow to put them on a log file and return "Error / Unknown mergefield".

Thanks,

Nicolas
Reply all
Reply to author
Forward
0 new messages