Is it possible to name the foreach, in my template i have a lot of nested foreach, ideally i would like something like this
<<foreach object in [objs]>>
<</foreach //end object loop>>
thanks
@miniseb31
Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature. However, we have logged a new feature request as WORDSNET-17786 in our issue tracking system to support it. We will check the possibility of implementation of this feature. We will inform you via this forum thread once there is an update available on it.
The issues you have found earlier (filed as WORDSNET-17786) have been fixed in this Aspose.Words for .NET 19.1 update and this Aspose.Words for Java 19.1 update .
@miniseb31 ,
Regarding WORDSNET-17786, it is to update you that the “Template Syntax” section of the documentation of LINQ Reporting engine was updated to describe the change. Please refer to the following article:
Template Syntax
A typical template for LINQ Reporting Engine is composed of common document contents and tags that describe the template’s structure and data bindings. You can form these tags using just running text that can occupy multiple paragraphs to be more descriptive.
A tag body must meet the following requirements:
A tag body must be surrounded by “<<” and “>>” character sequences.
A tag body must contain only text nodes.
A tag body must not be located inside markup document nodes such as [StructuredDocumentTag], [CustomXmlMarkup], or [SmartTag].
A tag body typically consists of the following elements:
A tag name
An expression surrounded by brackets
A set of switches available for the tag, each of which is preceded by the “-“ character
An optional comment providing a human-readable explanation ignored by the engine
<<tag_name [expression] –switch1 –switch2 … // optional_comment >>
Particular tags can have additional elements.
Some tags require closing counterparts. A closing tag has the “/” character that precedes its name. This tag’s name must match to the name of the correspondingopening tag.
<</tag_name>>
[Note – ]Tag body elements are case-sensitive.
During runtime, after a template syntax tag is processed by the engine, it is typically removed. This can lead to a situation where a paragraph containing the tag becomes empty if it has no other content. If such a paragraph is unwanted, it can be optionally removed by the engine (see “[Removing Paragraphs Containing Only Template Syntax Tags ].