It is working fine.
I need to set the print properties as default such as page format as "landscape" instead of portrait.
Secondly my page contents are on the full page. that way while printing the content goes outside the page. how can i set the page size ?
please help me to solve these problems
Unfortunately there is no real client size way to deal with this. The only way you can set these settings is to manually do it using page setup, or an active x/java applet.
You could possibly use CSS to provide different styles for documents that are going to be printed.