2
Vote

Sequence contains no elements - on load template

description

I am trying to generate a word document from a template. the idea is to:
 
  1. load the template
  2. replace mail merge fields with actual values.
  3. generate a document to a specified directory.
     
    when I try to load the template (which has a single line of text and one mai merge field), it throws a linq
    exception - Sequence contains no elements (see attached screen shot).
     
    If anyone has a sample on how to accomplish the above, it would be much appreciated.
     
    Thanks

file attachments

comments

DragonFire wrote Aug 12, 2012 at 7:06 PM

Hi, Benn.
Can you attach template document, that lead to this error, please...

wrote Nov 28, 2012 at 3:33 PM

wrote Feb 22, 2013 at 12:34 AM

BoucherS wrote Apr 25 at 1:46 PM