Question

I have a controller Employee , in that i have the action detail . The detail action prints like the attached image.alt text http://www.freeimagehosting.net/uploads/7bfae5ce57.png

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top