Jump to content

How take Print


raviprakashg

Recommended Posts

How take Print from Recordset Using ASPwhat i want is , ihve to print an report that i got in recordset, processs should be done while clicking an button or iconĀ  i don't want to open an new page, please give me an best idea for the above processthksurs raviprakash

you can use this code (javascript)function print_page(){ window.print();} <body><input type="button" name="button" onClick="window.print()" value="print page">
Link to comment
Share on other sites

you can use this code (javascript)function print_page(){ window.print();} <body><input type="button" name="button" onClick="window.print()" value="print page">

thanks for yr replywill this print all the Banner and all design or just print the data taken from Recordset(RS), i want to print only the data taken from RS, Help Me
Link to comment
Share on other sites

That code will print the page (File -> Print, send it to the printer). If you want to create the page, then that's another story.You need to write a SQL query to get the recordset, loop through the recordset, and display the data however you want, in a table or list or whatever.You need to figure out the requirements of what you want the report to look like, and then make it look like that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...