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 razor view in c#?

0 Answers  


What is inumerable?

0 Answers  


Can c# inherit multiple classes?

0 Answers  


What are data types with examples?

0 Answers  


What is difference between override and new in c#?

0 Answers  






What is polymorphism and its types in c#?

0 Answers  


What are predicates in c#?

0 Answers  


What?s the difference between an interface and abstract class?

4 Answers  


What is event delegate in c#?

0 Answers  


Can property defined in Interface.

4 Answers   Synechron,


Can a class have multiple constructors c#?

0 Answers  


How?s method overriding different from overloading?

2 Answers   Visual Soft,


Categories