For some reason, I am not able to modify the margins on the exported grid. Its moved to the right of the page. I used
PageLeftMargin="20mm"
PageRightMargin="20mm"
but its ignoring anything i put in these settings. How can I center justify the grid on the exported pdf?