Page 1 of 1

UnmarshallFromTemplate Sample

PostPosted: Tue Apr 05, 2011 1:22 am
by zkahn4176
Hi,

I tried this sample but I am unable to open generated file in Word 2007. It gives error that the file cannot be opened because there are problems with the contents. Only difference is I am using dotx as input file rather than docx. Please help

Regards
Zargham

Re: UnmarshallFromTemplate Sample

PostPosted: Tue Apr 05, 2011 1:26 am
by jason
Make sure your output document has filename extension dotx if it is a dotx.

That's very likely the problem. If this doesn't solve things for you, you'll have to attach your input dotx (or email it to me).

Re: UnmarshallFromTemplate Sample

PostPosted: Tue Apr 05, 2011 4:16 am
by zkahn4176
yeah you are right what a silly mistake. Now next question how can I generate a docx from dotx?