Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,867,785 members, 6,882,425 topics. Date: Thursday, 26 May 2022 at 04:40 PM

Vb.net Crystal Report & Dataset - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Vb.net Crystal Report & Dataset (6162 Views)

VB.NET Problem, Printing Receipt With Thermal Printer From Crystal Report. / I Need A Help To Write A Simple Login Form Using Vb.net / Post Ur Vb 6.0 Questions Here (2) (3) (4)

(1) (Reply)

Vb.net Crystal Report & Dataset by bigafees: 2:47pm On Jan 24, 2011
Nrlander,

I'm using Vb.net 2008 with ODBC connection
Please i need to know how to go about Crystal Report & Dataset together, although i know how to create crystal report & dataset, but how
i'm going to generate selected data from my table to dataset in other for my crystal report to display the data as a report.
Re: Vb.net Crystal Report & Dataset by bigafees: 4:46pm On Jan 24, 2011
This is my code to connect my table, datast & crystal report 2geda


con.Open()
sql = "SELECT * FROM Admission"
Dim dscmd As New OdbcDataAdapter(sql, con)
Dim ds As New DataSet1
dscmd.Fill(ds, "Admission")
'MsgBox(ds.Tables(1).Rows.Count)
con.Close()
Dim objRpt As New CrystalReportSource1 'It is given error in that CrystalReportSource1, that is not declare
objRpt.SetDataSource(ds.Tables(1))
CrystalReportViewer1.ReportSource = objRpt
'CrystalReportViewer1.

(1) (Reply)

Free Research Project/thesis Topics In Computer Science (PART 1) / Php Vs Python / How To Remove Paint Virus From Pc

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2022 Oluwaseun Osewa. All rights reserved. See How To Advertise. 22
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.