Explore the API
Page layout, headers and footers
Prepare an 80-record report with paper size, orientation, margins, repeated headers, page-number footers, and PDF preview.
Try this workflowExplore and compare
Change the inputs, run an action, and inspect the live result below.
ResultLive API output
Page Layout stays at 100% zoom. Preview the PDF and inspect multiple pages to see repeated headers and Page 1 of N footers.
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
Page layout, headers and footers
SheetPrint.configure sets physical paper and print geometry independently of editor zoom. The print area fits to one page wide with automatic height, so the long report spans multiple pages. Headers include the report title and sheet field (&A); footers include the date (&D), current page (&P), and total page count (&N). Page Layout view and the generated PDF let you inspect the same settings.
APIs used
sheet.print.configure()
editor.ui.setViewMode()
editor.save(StreamType.PDF)
How to explore
Prepare an 80-record report with paper size, orientation, margins, repeated headers, page-number footers, and PDF preview.
Page Layout stays at 100% zoom. Preview the PDF and inspect multiple pages to see repeated headers and Page 1 of N footers.
Document ownership
The ready event supplies the initialized editor. Each action resolves document objects from the current workbook. Reset loads a clean TXWB snapshot; worksheet, range, chart, and dashboard handles must be acquired again after loading.
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