Hi Abu, I have been trying to use grids with both export to csv & pdf, the pdf exports with columns all different sizes & no right margins, unless I remove the options to export to csv, excel etc.
When I try your demo to export all it says 'couldn't load plugin', both locally & on your site. Is it possible to have the option of exporting both excel & pdf?
Thanks
Gary
Sorry Abu, please ignore above the demo had crashed my adobe plugin.
However running the code here it allows me to export to pdf but has no right margin and column widths are out. – http://pastebin.com/KrjkWXUD
This however does out correctly but does not allow export to csv – http://pastebin.com/znHDfHNH
Thank you
For proper width adjustment in pdf, you must define width setting for all columns of grid. I see in code that few have missing width settings.
For export csv, you should remove format=>pdf.
$grid["export"] = array("format"=>"pdf", "filename"=>"my-file", "heading"=>"Invoice Details", "orientation"=>"landscape", "paper"=>"a4");
After that it would use the set_actions sent data.