Hi guys,
I'm working on a process that interacts with a variety of MS word templates that we use, replacing with relevant information (ie replace with "John Smith"), ready to be sent out. In testing, I've found it fall down a couple of times whilst interacting with the word template meaning that the templates get locked. I think this is because my exceptions 'bubble up' rather than recover, and then close the document safely within the page.
Can someone suggest the best way to handle this scenario so that if for whatever reason the letter cannot be completed in full, an exception raises but also closes (and potentially still saves) the document in a safe way.
Thanks
Mike