Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Smart Markers (in tools like FoxPro, reporting engines, or modern template systems) are placeholders that dynamically inject data into templates. Using nested objects (e.g., «customer.address.city») enhances flexibility, organization, and expressiveness.
Aspose.Cells also supports anonymous types or custom objects in smart markers. The example that follows shows how this works. For importing data from dynamic objects using Smart Markers, visit the following article:
Importing from dynamic object as data source
Aspose.Cells supports nested objects in smart markers; the nested objects should be simple. We use a simple template file. See the designer spreadsheet that contains some nested smart markers.
| The first worksheet of the SM_NestedObjects.xlsx file showing nested smart markers. |
|---|
![]() |
The example that follows shows how this works.
Aspose.Cells now also supports using a generic list as a nested object. Please check the screenshot of the output Excel file generated with the following code. As you can see in the screenshot, a Teacher object contains multiple nested Student objects.
![]() |
|---|
The current default processing method is to process smart markers line by line. However, sometimes the smart markers of the same data table need to be processed together, regardless of whether they are in the same row or not. In that case, you must specify a named range “_CellsSmartMarkers” and set WorkbookDesigner.LineByLine to false before invoking the processing.
|
|
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.