You can print the results of your work in the Webix SpreadSheet. This functionality is provided out of the box. Read about the Print API and printing options in the related guide.
There are two ways to activate printing:
Both these actions envoke the dialog window that provides you with the available printing settings.
Related sample: Toolbar with all buttons
The before print dialog looks as follows:
Let's have a look at the contents of the before printing dialog:
There are three sections: General Settings, Paper Size and Layout.
The General Settings section allows you to specify the following settings:
The Paper Size section lets you define the desired paper size for printing: "letter", "a4" (default) or "a3".
The Layout section allows setting the layout configuration:
You can fully localize labels in the dialog via the webix.i18n.spreadsheet object. See the printing-related labels below:
webix.i18n.spreadsheet = {
"labels": {
...
// print
"print": "Print",
"print-title": "Before you print..",
"print-settings": "General settings",
"print-paper": "Paper size",
"print-layout": "Layout",
"current-sheet": "Current sheet",
"all-sheets": "All sheets",
"selection": "Selected cells",
"borderless": "Hide gridlines",
"sheet-names": "Show sheet names",
"skip-rows": "Skip empty rows",
"margin": "Hide margins",
"page-letter": "Letter",
"page-a4": "A4 (210x297mm)",
"page-a3": "A3 (297x420mm)",
"page-width": "Page width",
"page-actual": "Actual Size",
"page-portrait": "Portrait",
"page-landscape": "Landscape"
}
}
Read more on SpreadSheet localization in the related article.
Back to top