Citat:
mirdraal: Ne vidim u kodu da utvaraš konekciju na bazu
Dakle pre da.fill(... )
treba jedno conne.open()
pa posle toga
conne.close()
Ne treba, DataAdapter sam otvori konekciju ako je zatvorena i sam je posle zatvori.
Citat:
Vertyg01: sve super znaci loduje se CrystalReport1.rpt ali ne dobijam nikakav rezultat, pretrazio sam malo forum i bilo je reci da se treba napraviti poseban query unutar reporta (?!).
Sta tacno treba da uradim da bi dobio ispis na cr-u ?
Ne treba ti query unutar reporta ako si (kao što jesi) već prosledio samo podatke koje hoćeš da prikažeš. Probaj da posle:
crystalReportViewer1.ReportSource=rp;
dodaš
crystalReportViewer1.DataBind();
▪ "Why isn't my wireless mouse connected to the computer?" - 2008 Dumbest Technical Support Question award
▪ The word 'politics' is derived from the word 'poly', meaning 'many', and the word 'ticks', meaning 'blood sucking parasites' - Larry Hardiman
▪ If the good guy gets the girl, it's rated PG; if the bad guy gets the girl, it's rated R; and if everybody gets the girl, it's rated X