Hello to all.
Trying to change margins on a pageOrientation: landscape
Here is the code that’s not working
$.jqx.pdfExport = {
orientation: "landscape",
pageSize: "letter",
pageMargins: [40,20,40,20]
};
var dd = new Date();
dd = formatDate(dd,'MM-dd-yyyy');
J = {
header: true,
filterBy: null,
groupBy: null,
style: null,
fileName: "Receipts",
pageOrientation: "landscape",
pageMargins: [40,20,40,20],
pageHeader: { columns: [{ text: cinfo.cname, fontSize: 10, margin: [ 10, 10, 0, 0 ] },
{ text: 'A/R Receipts', fontSize: 18, alignment: 'center', margin: [ 0, 10, 0, 0 ]},
{text: dd, alignment: 'right',fontSize: 10, margin: [ 0, 10, 10, 0 ]}]
},
pageFooter: function(currentPage, pageCount) { return { text: currentPage.toString() + ' of ' + pageCount, alignment: 'center' };},
expandChart: "+",
collapseChar: "-"
}
$("#invDetail").jqxGrid('exportview', 'pdf', J);
Any assistance would be greatly appreciated.
Eric