views:

140

answers:

1

Hi all, I have a controller Employee , in that i have the action detail . The detail action prints like the attached image.alt text

Suppose there is a save pdf button, i need to print this page as .pdf.. How can i do this ? Pls help me

Thanks in advance Nisanth

+1  A: 

Probably you would need to implement another view to Detail action, which would use all given information (as it does now for printing HTML) to create a PDF document. Then you could use Context Switch action helper to trigger using PDF View instead of what is displayed now.

Laimoncijus