Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
an any one suggest me how to save rdlc report in c# and open it as it is on button click

What I have tried:

i have created report using reportviewer.now i want to save that report somewhere if user want to save it..and again if user wants to view it he should be able to view it as it is with all the design.
how i can do that?
any suggession or link?
Posted
Updated 8-Jul-16 0:25am
Comments
dan!sh 8-Jul-16 4:34am    
"User wants to save it": in which format?
Member 12385326 8-Jul-16 4:57am    
any format..but i want to open it late for viewing purpose according to particular id.

1 solution

You can render the report as a PDF and when needed, save it on the client computer using FileStream.

User ReportViewer.LocalReport.Render method to get the PDF report in an byte array and then use FileStream to save it.
 
Share this answer
 
Comments
Member 12385326 11-Jul-16 4:06am    
there is a option on reportviewer to export it as "pdf","word","excel" .
but after saving i want to search it by entering number in textbox.
how i should do that ?
dan!sh 11-Jul-16 4:33am    
Search in a file?
Member 12385326 11-Jul-16 6:02am    
Iw@zi?? not getting u.

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