Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am showing a report using crystal report with some filter query.
I want to export filtered data to excel using external button.
I have tried following code :

myreport.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.Excel, Response, True, "filename")


It exports the complete data not filtered data.
Posted
Comments
nilesh sawardekar 14-Jul-14 7:04am    
did u set datasource like e.g. Report.SetDataSource(ds)
Raghubir_Sarkar 15-Jul-14 0:54am    
Thanks for the comment. I have solved the issue, problem was in my selection formula of report. Anyway thank you very much.

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