HTML to word doc at runtime simplest trick

Dear Friends,
Recently my friend got a new task to generate a word & PDF document at runtime from FCK Editor and he was in real hurry, so he told me a sample for him. I tried with a simple which I am sharing here.
I created a resume layout with FCK editor. Please find the below screen and code.

HTML to word

now code is here

Generate html to Word
I hope you will also enjoy.

you can download code  at
https://skydrive.live.com/embedicon.aspx/.Public/RAJAT_INDIANDOTNET_HTMLTOWORD.zip?cid=1eda2012469ff8ad&sc=documents
Thanks & Best Regards,
Rajat Jaiswal