im using version 2.1.5.0
i build 2 types of documents (using the same code as in your examples)
the first doc only uses one datatable so uses:-
doc.MailMerge.Execute(dsResults.Tables(0))
the second doc uses 3 datatables so uses:-
doc.MailMerge.ExecuteWithRegions(dsResults)
with the doc having the correct format for starting and ending tables
i am having problems with the 2nd method, the problem occurs at the very end of the process after it has collected all the data and then built the doc ready for display
'Stream the document to the client browser.
doc.Save( \_
String.Format("{0}.doc", param), \_
SaveFormat.FormatDocument, \_
SaveType.OpenInBrowser, Response)
Response.End()
when it gets to Response.End() it errors with “Thread was being aborted”
<<TableStart:Client>>
–then all the cleint fields
<<TableEnd:Client>>
<<TableStart:Advice>>
–then all the advice fields
<<TableEnd:Advice>>
<<TableStart:Therapy>>
–then all the therapy fields
<<TableEnd:Therapy>>