prob with export to PDF when table is Big

Hi

I’m using export PDF functionality(Java based) in dhtmlx grid. It works well but I’ve encountered an issue with this. When the grid has more colums(I have 12 columns), It isn’t displaying correctly in PDF, columns getting mixed up with each other. Is there any way I can display them properly in PDF?

Thanks

Can you please provide code snapshot of grid initialization?

Here is my code…

function LoadIt()
{
reportoverviewgrid=new dhtmlXGridObject(“grid”);
reportoverviewgrid.setSkin(“dhx_skyblue”);

            reportoverviewgrid.enableAutoWidth(true);
            reportoverviewgrid.enableAutoHeight(true);

            reportoverviewgrid.setImagePath("../dhtmlx/dhtmlxGrid/codebase/imgs/");
            reportoverviewgrid.setHeader("ID, Region Route, Circuit, Tower, Status, Recorded Date,test1,test2,test3,test4");
            reportoverviewgrid.attachHeader(" ,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter");

           // reportoverviewgrid.setColumnIds("id, towername,circuit,tempseverity,route,date,defectseverity,region");
            reportoverviewgrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro,ro,ro");
            reportoverviewgrid.setColSorting("str,str,str,str,str,str,str,str,str,str");

            reportoverviewgrid.init();

            //reportoverviewgrid.setColumnHidden(0,true);
            reportoverviewgrid.loadXML("exampleXML.jsp");

        }

And I’m calling toPDF like this…

reportoverviewgrid.toPDF(’/Web/generatePDF’);

thanks