문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top