1]Yes, your code is worked.
2] I have TextBoxes where we will enter some value
Please visit this testing web site :
http://shailendraphadke.com/master/inbox.aspx and click on any View Button and enter some values [ 100, 200}
2] click on Preview Button from bottom side - > calculation will be displayed and then click on Show Quotation Button.
I am able to display my quotation in word format. But i need .pdf
thanks for reply