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

How does insertion sort work?

872


If you want to write your own dot net language, what steps you will u take care?

922


What is boxing? Explain its functionality?

920


What is default constructor in c#?

864


What are the steps to make an assembly to public?

926


What are the 3 types of comments in c#?

895


Why delegates are safe in c#?

811


Are tuples immutable c#?

872


Can constructor be protected in c#?

887


What do you mean by saying a "class is a reference type"?

862


What do you mean by casting a data type?

886


What .exe means?

850


What is cookies c#?

843


What is hashmap in c#?

889


Can we declare class as protected?

923