how can i display crystalreport in button click?

am working with VS2005



how can i display crystalreport in button click? am working with VS2005..

Answer / 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

More C Sharp Interview Questions

what is a destructor?

0 Answers   Amazon,


what is ment by Unboxing?

3 Answers  


What is the use of base keyword? Tell me a practical example for base keyword’s usage?

0 Answers  


Why reflection is used in c#?

0 Answers  


How many types of interface are there in c#?

0 Answers  






Can you override private virtual methods?

11 Answers   AROBS Transilvania Software, IBM, Mind Tree, Revalsys,


what is namespace?

6 Answers  


What is thread safe in c#?

0 Answers  


What are the different types of literals in c#?

0 Answers  


Why do we need abstract class?

0 Answers  


how can we pass parameters to a user control using delegates ?

1 Answers   IBM,


What is a Assembly?

0 Answers   UGC Corporation,


Categories