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

Explain About Web.config

927


How do I unload an application domain?

894


What is get set in c#?

927


What is file extension of webservices?

1003


What benefit do you get from using a primary interop assembly (pia)?

939


What is a .aspx file?

828


What is an abstract class c#?

854


Can a dictionary have duplicate keys c#?

871


What is readline library?

917


What is the difference between dictionary and hashtable in c#?

875


Why it's said that writing into .NET Application Configuration Files is a Bad Idea?

932


What is a c# delegate?

1006


What is static and use of it?

933


What is an xsd file?

891


How are delegates chosen?

847