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
What is parsing?
What is value c#?
What is singleordefault?
What is fcl in c#?
What does it mean to override a method?
Can you pass value types by reference to a method?
What is the namespcae generally given to the webpage of the .NET Framework ?
Is lazy thread safe c#?
What is parallel programming in c#?
What is the difference between list and arraylist in c#?
Is an interface a type c#?
What can I create with c#?
Is c# a backend language?
Is overriding of a function possible in the same class?
Name the control which cannot be placed in mdi?