pdf.area String
The area that will be exported.
The supported values are:
-
workbook
- Exports the full workbook, including all sheets. -
sheet
- Exports the active sheet. -
selection
- Exports the selected area on the active sheet.
Example - setting the area for export
<div id="spreadsheet"></div>
<script>
$("#spreadsheet").kendoSpreadsheet({
sheets: [{
rows: [{
cells: [{ value: "A" }, { value: "B" }, { value: "C" }]
}, {
cells: [{ value: "1" }, { value: "2" }, { value: "3" }]
}, {
cells: [{ value: "4" }, { value: "5" }, { value: "6" }]
}]
}],
pdf: {
area: "selection"
}
});
var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
spreadsheet.saveAsPDF();
</script>