Document Properties
Workbook properties describe the document rather than its cells. The supported metadata includes the familiar title, author, subject, description, categories, keywords and company, plus related native document properties, set through the format-specific options and model.
Metadata travels with the file you deliver, so set it on purpose, clear what a template brings along and check the result in the exported document.
Set Metadata Intentionally
Use the public DocumentProperties, DocumentExportOptions and save-option references to select supported fields: DocumentProperties, DocumentExportOptions and SaveOptions.documentProperties in the browser editor, and the DocumentProperties class in .NET.
Document metadata belongs to the file being delivered. Do not confuse it with the current comment author or the application's authenticated user.
Review Template Metadata
Review inherited template metadata before generating customer reports. A reusable template can contain an old author or title that should be replaced or cleared for the new output.
Warning
No Secrets in Metadata. Do not put credentials or application secrets in custom metadata.
How the Formats Differ
XLSX, TXWB and PDF have different property models. Save and export options apply to their documented formats and do not make arbitrary keys portable everywhere.
Changing output metadata should not be mistaken for changing worksheet values or browser UI settings.
Make Report Output Reproducible
For reproducible report output, configure the relevant date, time, locale and print context explicitly. Application storage timestamps and printed date fields are separate concerns.
Verify the Exported Document
- Open the exported document in a target viewer.
- Inspect both the visible pages and its property panel.
- Verify that unsupported or omitted values are handled as intended.
Retain conversion warnings where the format cannot represent a requested property.
Next Steps
- Loading and Saving Workbooks: save XLSX, TXWB and PDF with the options that carry the metadata.
- Page Layout and Print Settings: configure the print context of report output.
- Exporting Worksheets to PDF: export the PDF documents whose properties you set.
- Comments, Notes and Hyperlinks: set the comment author, which is not document metadata.