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 use of a HashTable in .NET?

0 Answers   Arigo Infotech,


What is toint32 c#?

0 Answers  


What are Regex / regular expressions ?

0 Answers   QuestPond,


Is stringbuilder thread safe c#?

0 Answers  


Why ienumerable is used in c#?

0 Answers  






Explain ACID rule of thumb for transactions.

3 Answers  


What does clr stand for?

0 Answers  


Why do we use dataset in c#?

0 Answers  


Can you inherit multiple interfaces?

3 Answers  


c# code for how to merge two sorted arrays Input : A = 2,5,8,4 B = 3,9,10,5 Output : 2,3,4,5,5,8,9,10

3 Answers  


What is task parallel library?

0 Answers  


When should we use delegates in c#?

0 Answers  


Categories