.NET document processing
Mail merge on the server
Supply a customer name and quantity, then let .NET load a reusable TXWB template and expand its invoice lines.
ResultLive API output
Default invoice total: 540. Diagnostics include merge warnings and formula errors.
Preparing sample...
Keep exploringReset or save
Reset restores this sample's starting document. TXWB retains its spreadsheet, dashboard, and reporting definitions.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Mail merge on the server
The server captures a workbook template with fixed bindings and a repeating row band, saves it as TXWB, reloads a clean copy, merges validated business data, inspects diagnostics, and exports a workbook or PDF.
APIs used
Workbook.SetMailMergeAsync()
Workbook.MergeAsync()
ServerSheetControl.LoadAsync()
SaveAsync()
How to explore
Supply a customer name and quantity, then let .NET load a reusable TXWB template and expand its invoice lines.
Default invoice total: 540. Diagnostics include merge warnings and formula errors.
Independent server processing
The controller validates the inputs, creates a request-owned ServerSheetControl, awaits each operation, and returns generated bytes. The browser displays the workbook or PDF returned by .NET. The generation endpoint works without a browser editor.
The Code panel shows this sample's actual implementation and the shared hosting code. Downloads contain the current document; changes are not stored on the server.
NuGet packages
TXTextControl.TXSheetControl.AspNetCore
2.0.0-beta.1
Provides the Razor spreadsheet editor, browser APIs, and packaged fonts.
dotnet add package TXTextControl.TXSheetControl.AspNetCore --version 2.0.0-beta.1
TXTextControl.TXSheetControl.Server
2.0.0-beta.1
Creates, converts, merges, and exports workbooks in .NET without a browser.
dotnet add package TXTextControl.TXSheetControl.Server --version 2.0.0-beta.1