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
How does insertion sort work?
If you want to write your own dot net language, what steps you will u take care?
What is boxing? Explain its functionality?
What is default constructor in c#?
What are the steps to make an assembly to public?
What are the 3 types of comments in c#?
Why delegates are safe in c#?
Are tuples immutable c#?
Can constructor be protected in c#?
What do you mean by saying a "class is a reference type"?
What do you mean by casting a data type?
What .exe means?
What is cookies c#?
What is hashmap in c#?
Can we declare class as protected?