Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a linked list c#?

896


Does c# support const methods, properties, or events?

976


What is application object in c#?

937


How is lazy loading achieved?

930


what is the index value of the first element in an array?

933


What exactly happens when we debug and build the program?

2579


What is interface used in c#?

1025


What are the advantages of using partial classes?

1005


Why do we need to override in c#?

974


What is callback method in c#?

944


What is difference between encapsulation and abstraction in c#?

961


What is the use of static members with example using c#.net.

923


code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

2175


What is the difference between final finally and finalize in c#?

935


What is yield break in c#?

911