how can i display crystalreport in button click?
am working with VS2005
Answer Posted / tanveer sidiq
Palce CrystalReportViewer Object on ur form and name it to
objCrystalReportViewer
drag a button on to the same name it to btnTemp
on btnTemp click write the following lines of code
dim rdReportToPrint as new
CrystalDecisions.CrystalReports.Engine.ReportDocument()
rdReportToPrint.Load("write the path were in u have save ur
report here" )
objCrystalReportViewer.ReportSource = rdReportToPrint;
this is the way we load crystalreport dynamically
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain About Web.config
How do I unload an application domain?
What is get set in c#?
What is file extension of webservices?
What benefit do you get from using a primary interop assembly (pia)?
What is a .aspx file?
What is an abstract class c#?
Can a dictionary have duplicate keys c#?
What is readline library?
What is the difference between dictionary and hashtable in c#?
Why it's said that writing into .NET Application Configuration Files is a Bad Idea?
What is a c# delegate?
What is static and use of it?
What is an xsd file?
How are delegates chosen?