Data templates
Adds the ability to create data templates along with support for .NET 5.0.
Features
- Added support for Microsoft .NET 5.0.
- Introduced data templates feature which provides a flexible mechanism for creating data-bound documents. Template tags are added to the document, and processed using the GcWordDocument.DataTemplate property.
- Added GrapeCity.Documents.Word.Templates.DataTemplate class which provides properties and methods that are used to associate a GcWordDocument with template data sources, and to process data templates.
- Added DataTemplate.DataSources property which gets the collection of data sources associated with the current document's data templates. However, only one data source is supported in this version.
- Added DataTemplate.Process() method which processes templates in the document, iterating over root items in DataSources, and replacing template tags in the document with data.
- Added DataTemplate.BatchProcess() method which iterates over root items in DataSources, starting with a fresh copy of the document and processing templates separately for each root data item.
- Added GcWordDocument.DataTemplate property which gets the DataTemplate object that provides properties and methods used to manage template data sources and process data templates.