pdf.autoPrintBoolean
(default: false)
Specifies if the Print dialog should be opened immediately after loading the document.
Example
<div id="pivotgrid"></div>
<script>
$("#pivotgrid").kendoPivotGridV2({
pdf: {
fileName: "Sales-Report.pdf",
autoPrint: true
},
dataSource: {
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],
rows: [{ name: "[Product].[Product]" }],
measures: ["[Measures].[Internet Sales Amount]"],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
cube: "Adventure Works"
},
read: 'https://demos.telerik.com/service/v2/olap/msmdpump.dll'
}
}
});
</script>
Note: Some PDF Readers/Viewers will not allow opening the Print Preview by default, it might be necessary to configure the corresponding add-on or application.
In this article