In Spire is it possible to have nested grouping? All the data will be created during runtime and WON'T be connecting to an external data-source
I know that I can loop through a mail merge template by using the following code
- Code: Select all
var dataTable = new MailMergeDataTable("Person", IEnumerableData);
document.MailMerge.ExecuteGroup(dataTable);
Using this template
- Code: Select all
<<GroupStart:Person>>
..
..
..
<<GroupEnd:Person
but is it possible to have a template like this and still have the grouping work for Address?
- Code: Select all
<<GroupStart:Person>>
..
<<GroupStart:Address>>
..
<<GroupEnd:Address>>
..
<<GroupEnd:Person
Second question, is it possible to just pass in a dataset (not enumarable, just a single class/dataset) into the mail merge Execute() function without using string[]?
i.e
- Code: Select all
document.MailMerge.Execute(string[], string[]);//i don't want to use this function
Is there a function to pass in a single data-source that does the mapping for me? I feel an array of strings is a bit dodgy.
- Code: Select all
document.MailMerge.Execute(Data);//something like this would be better