Prepare and create Excel (XLSX) reports
You can create Excel (.xlsx) reports in Tekla Structures. The content and formatting of these reports is defined using an .xlsx.rpt template created with Template Editor and an .xltx template created with Microsoft Excel.
Compared to the older HTML-based templates or Organizer, the Excel (.xlsx) reporting method:
- Eliminates VBA macros: You no longer need to create and maintain complex, brittle VBA macros, which are difficult to edit and are increasingly restricted by corporate IT security policies.
- Provides full formatting control: Unlike the limited HTML-based report (.xls.rpt), this method allows for fully pre-configured Excel templates (.xltx). You can define company logos, headers/footers, print settings, cell formats, and advanced table styles. The final report is a native, ready-to-use Excel file.
- Improves security and compatibility: The resulting modern
.xlsxformat is the industry standard and avoids security filters that often block or quarantine older macro-enabled.xlsfiles. - Streamlines workflow: The process is more direct and intuitive, reducing the steps to get a polished, finalized report from Tekla Structures.
Notes and limitations
- For complex formatting, like using Excel built-in table styles for alternating row colors, we highly recommend you to define it within the
.xltxExcel template, rather than relying on the basic formatting options in the.rptfile. - Report logic, such as
ifstatements, is handled within the Template Editor value field formulas, not within the export process itself. - To use
{}as literal characters in the Excel template, avoid using them for non-attribute text. The curly brackets{}are reserved for Tekla Structures attributes, but a cell can contain multiple attributes and other text (for example, "Part: {PART_POS}, Weight: {WEIGHT}").
Steps to produce an XLSX report
-
In Microsoft Excel, prepare the Excel template (.xltx).
- In Template Editor, prepare the textual template (.xlsx.rpt).
- In Tekla Structures, export the Excel report (.xlsx).
For details, see the instructions below.
Prepare Excel template (.xltx)
Prepare textual template (.xlsx.rpt)
Export Excel report
Examples
Excel template example
In the following .xltx template example, the %&O%& string has been placed in a cell to mark where the main data rows from the .xlsx.rpt file will be inserted.
To see the example template in a larger size, right-click the image and select the option to open the image in another browser tab or window.

XLSX.RPT example
Below is an example with a part of the Template Editor xlsx.rpt template containing column headers for the data rows and the needed value fields.
To see the example template in a larger size, right-click the image and select the option to open the image in another browser tab or window.

XLSX example
Below is an example of the final report where data from the model has been retrieved.
To see the example report in a larger size, right-click the image and select the option to open the image in another browser tab or window.


