jQWidgets Forums

jQuery UI Widgets Forums Grid Grid exportview pdf

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  svetoslav_borislavov 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid exportview pdf #133489

    EricK
    Participant

    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

    Grid exportview pdf #133490

    Hi,

    The exportview method accepts only two arguments dataType and fileName
    The exportdata accepts: dataType, fileName, exportHeader, rows, exportHiddenColumns, serverURL, charSet

    Please navigate to the API to see what settings you can pass to the export methods. You cannot set the pageOrientation.
    https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm?search=gr

    Best regards,
    Svetoslav Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.