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 do I create a new form in c#?
Is cli same as the clr?
What are scriptable objects?
What are the properties of c#?
Can mvc be used for desktop applications?
Difference between a sub and a function in c#.
Can you declare a field readonly?
What is a linked list c#?
What is serialization in c#?
How do you serialize in c#?
Can bool be null c#?
What is Implementation inheritance and interface inheritance?
Which is better python or c#?
How to get the sum of last 3 items in a list using lambda expressions?
What is the purpose of dependency injection?