raviprakashg Posted April 18, 2006 Share Posted April 18, 2006 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 Link to comment Share on other sites More sharing options...
blackpearl Posted April 18, 2006 Share Posted April 18, 2006 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<{POST_SNAPBACK}> 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 More sharing options...
raviprakashg Posted April 19, 2006 Author Share Posted April 19, 2006 you can use this code (javascript)function print_page(){ window.print();} <body><input type="button" name="button" onClick="window.print()" value="print page"><{POST_SNAPBACK}> 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 More sharing options...
justsomeguy Posted April 21, 2006 Share Posted April 21, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now