# XLSX Rendering Considerations

S-Docs XLSX templates use Microsoft Excel files as the workbook layout source.

That approach gives you spreadsheet-native formatting and generated `.xlsx` output.

It also has a few important considerations to plan around.

### Key considerations

* XLSX layout and styling come from the uploaded Excel file.
* Dynamic content only renders where valid S-Docs Microsoft template syntax is inserted.
* XLSX merge fields, logic blocks, and query blocks must use square brackets.
* The upload path and generation path must match.
* Changes made in Excel do not apply until you re-upload the file.
* Some template features are not available in XLSX output.
* Related lists are not available in XLSX output.
* Test formulas and formatting with real data before rollout.

### Not currently available

These XLSX capabilities are not currently available:

* Live Edit for generated XLSX documents
* template headers and footers
* component templates
* S-Sign
* Related Lists

### What to avoid

Avoid these patterns in XLSX templates when possible:

* fields or tags missing square brackets
* mismatched upload and generation methods
* planning around related list output in XLSX
* editing an Excel file locally without re-uploading it
* rolling out formulas or totals without testing real data

Simple workbook-native layout is usually the safest choice.

### Excel and template structure

XLSX templates are built in Microsoft Excel, not in the template body.

S-Docs merges data into the uploaded `.xlsx` file at generation time.

That means worksheet structure, formulas, cell formatting, and table layout should be controlled in Excel.

S-Docs logic still works in XLSX.

The wrapper changes.

Use square brackets around visible merge fields and Microsoft template markup blocks.

{% hint style="warning" %}
If an XLSX field or logic block prints as plain text, check the square brackets first.
{% endhint %}

### Upload mode and generation path

XLSX behavior changes based on your S-Docs version and whether **Enable New Microsoft Template Upload** is checked.

If **Enable New Microsoft Template Upload** is checked:

* this applies to Summer 2025 (`v10.0`) and later
* the template is uploaded through the newer Microsoft template upload flow
* the template can be generated through **S-Docs LWCs** or the **SDK**
* the template is not compatible with the legacy custom S-Docs button

If **Enable New Microsoft Template Upload** is not checked:

* this applies to older templates and legacy upload flow templates
* the template is uploaded through **Template Editor**
* the template can be generated through the legacy custom S-Docs button
* the template is not compatible with **LWCs** or the **SDK**

Starting in Summer 2025 (`v10.0`), the newer XLSX flow uses Salesforce Compression functionality.

That improves consistency, file handling, and performance in the newer upload flow.

{% hint style="warning" %}
If the upload method and generation method do not match, the XLSX template may appear valid but still fail to generate where you expect.
{% endhint %}

### Related list considerations

XLSX templates do not support related lists.

Use XLSX for single-value output, workbook formatting, and spreadsheet-native calculations.

If you need repeating row output from Salesforce data, use a format that supports related lists instead.

### Feature differences from DOCX, PPTX, and PDF templates

XLSX output is not the same as DOCX, PPTX, or PDF output.

Use XLSX when you want spreadsheet-style output and Excel-native design tools.

Do not expect document-style or slide-style features to carry over.

For example:

* XLSX does not support template headers and footers
* XLSX does not support component templates
* XLSX uses Excel table structures instead of HTML or Word table layout
* XLSX formatting comes from Excel, not CSS-driven page markup

### Best practice

Build XLSX templates like Excel workbooks first.

Then layer S-Docs syntax into that structure.

Use:

* Excel-native layout and formatting
* bracketed XLSX merge syntax
* real-data testing before release

Test early if your template includes:

* formulas or totals that depend on row counts
* conditional sections
* strict number formatting or leading zeros
* large data sets

### Troubleshooting tip

When an XLSX file fails or renders incorrectly, check these first:

* missing square brackets around XLSX syntax
* unsupported features such as components or Live Edit
* upload mode and generation path mismatch
* workbook logic that assumes related list output is available
* formulas or formatting that assume fixed output shape
* a newer local file that was never re-uploaded

If one section behaves unpredictably, test the same pattern in a smaller workbook first.

That helps confirm whether the issue is in the syntax, the Excel structure, or the upload path.

### Related resources

* Review [Excel (XLSX)](/sdocs/template-architecture/document-formats/xlsx-format.md) for format guidance and build patterns.
* Review [Build and Upload an XLSX Template](/sdocs/template-architecture/document-formats/xlsx-format/build-and-upload-an-xlsx-template.md) for syntax, upload flow, and examples.
* Review [Merge Fields With Microsoft Templates (DOCX, PPTX, XLSX)](/sdocs/template-architecture/inserting-merge-fields/merge-fields-with-microsoft-templates-docx-pptx-xlsx.md) for bracketed Microsoft template syntax.
* Review [Quick Setup: Conditional Logic With Microsoft Templates (DOCX, PPTX, XLSX)](/sdocs/advanced-template-logic/conditional-logic/quick-setup-conditional-logic-with-microsoft-templates-docx-pptx-xlsx.md) for bracketed `RENDER` syntax.
* Review [Preserve leading zeros in Excel output](/sdocs/template-architecture/document-formats/other-formats/leading-zeroes-for-xls-templates.md) for formatting edge cases.
* Review [S-Docs Limitations](https://kb.sdocs.com/knowledge-base/sdocs/understanding-template-formats/s-docs-limitations/) for broader product limits.
* Review [XLSX Templates](https://kb.sdocs.com/knowledge-base/sdocs/understanding-template-formats/xlsx-templates/) for additional XLSX background.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sdocs.com/sdocs/template-architecture/document-formats/xlsx-format/xlsx-rendering-considerations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
