Export To PDF

when i pull my reports i display it in a dialog box…what i want to achieve now is export my dialog box table(i.e. the results genrated in tabular format) to PDF…using TCPDF for this task…here is my link


echo CHtml::link('Export To PDF', array("toPdf",array('param1'=>$dateArray,'param2'=>$dataReturn)),array('target'=>'_blank'));

but in my action i dont get the required data…if i do


var_dump(param1);

it returns null…

anyone can help me here it would be grateful…

its solved…and if you are wondering how, i just passed the conditions to my function and called my model again and then displayed the data page…

having problem with pagination in tcpdf…my generated pdf showing pagination links…how do i remove my pagination links from it before i export to pdf?i can see that it takes an html of the page and then converts to pdf…

set the property enablePagination to false…now my problem is if pagination is enabled the user cant export all the results,

eg: if 15 results are there in my cgridview and if pagination is 5,if i do export now only 5 rows will be exported to pdf…

i want the user to export all the 15 rows at once…

create a separate action that exports all the results to pdf and link that action in the dialog box. when the user click the link all results are exported to pdf for more information please read this link