1

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

Charles
  • 50,943
  • 13
  • 104
  • 142
Nisanth Kumar
  • 5,667
  • 8
  • 33
  • 43

1 Answers1

1

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
  • 8,615
  • 10
  • 58
  • 81