Click here to Skip to main content
15,921,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Dear Sir,

Am working on Asp.net , c#, SqlServer 2005.

I have Made a Web Application. In that I have Took Gridview , Textbox and Print button....to search the Records from Large no. of DATABASE and Print it.

So, If i Search the Records, it is searching all the Records related to Search in Textbox.


BUT WHEN I CLICK THE PRINT BUTTON IT IS PRINTING ALL THE RECORDS FROM DATABASE.

So, JUST I NEED TO PRINT ONLY THE SEARCH RECORDS.
Every thing i need it by USING CRYSTAL REPORTS.

now Finally i want to print the Records what ever i have Searched., just by clicking the print button.


Please Please Please Please help me, how to do this ?

Thanks.
Posted
Comments
Ranjith Reddy CSE 2-Jul-12 7:25am    
Already , i have Created Crystal Report.....but its printing all the records from database.......Only i need to print SEARCH RECORDS only.

Many thanks in Advance. Please help me my dear EXPERTS.
ZurdoDev 2-Jul-12 8:11am    
You'll have to provide some details of what you are doing, like code samples.
dimpledevani 2-Jul-12 8:41am    
on print command enter your search condition in where clause and fire the query again to get only the required data or you can use the formula fields of crystal reports also...
sahabiswarup 3-Jul-12 2:48am    
Ranjith do one thing after searching u save your search result into a datatable and then generate a HTML report based upon your datatable and print that report.
I hope this will work.
ShaikhM 5-Jul-12 22:28pm    
May be you should add a RECORDSELECTION statement to you code for the application to filter the search records.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900