Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 2 odgovora
  • 2.629 pregleda

Najnovija ↓

Pomoc oko crystal reporta 17.02.2007. u 12:04 · pre 239 meseci
izmenjeno 1 put, poslednji put Neznalica_sa_ugla 17.02.2007. u 12:25
  1. Neznalica_sa_ugla17.02.2007. u 12:25zapis iz teksta poruke
#1
Ima li ko da pomogne !!!
Potrban je najjesnostavniji CR iz jedne tablice , da mi to opise u par koraka . (asp.net vs2005 , SQL2005 ) , samo da to vidim na ekanu .. HVALA
Re: Pomoc oko crystal reporta 18.02.2007. u 20:50 · pre 239 meseci #2
To ti je najbolje da pogledas na ovom linku, jer jako je fino objasnjeno.

http://www.codeproject.com/useritems/CreatingCrystalReports.asp

http://www.codeproject.com/useritems/Le_Quang_Anh.asp

Uglavnom obrati najvecu paznju na slijedeci pasus koji cu postaviti ovdje dolje a on se nalazi na prvom linku.

Code:

Set the created Report to display in the Form
Then you have to set a “crystalReportViewer” in your form to load the report that you created earlier. And also you need to set the report source of this “crystalReportViewer” component, which is falling in the properties panel or you can set the report source by using the code like the following.

// code to get data from the DB

DBConnection DBConn = new DBConnection();

OleDbDataAdapter myDataAdapter = DBConn.getDataFromDB();

 

// use the created Dataset to and fill it with data getting

// from the DB by using the DataAdapter

DataSet dataReport = new DataSet();

myDataAdapter.Fill(dataReport,"myPersonalInfoTable");

 

// create a new report from the created CrystalReport

myDataReport myDataReport = new myDataReport();

// set the data source of the report

myDataReport.SetDataSource(dataReport);

 

// set the report source of the created “crystalReportViewer”

// component to the created report

crystalReportViewer1.ReportSource = myDataReport;
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme