Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys, I'm totally newbie on WPF application and I'm asking for your help and ideas for me to finish my project Inventory System... I'm on my way on making my Issuance form and i do not know how to generate a report with listview control and pass it to crystal reports..

This is my code..


C#
Try
           Dim ds As New DataSet

           Dim query As String


           query = "SELECT ItemID,Item,Serial,Quantity,Category,Class,Unit FROM database.tbl_issued"
           Dim da As New MySqlDataAdapter(query, ConStr)
           da.Fill(ds, "tbl_issued")
           ConStr.Close()

           Dim cryds As New rptPrntIss
           cryds.SetDataSource(ds.Tables(0))
           CrystalReportViewer1.ReportSource = cryds
           CrystalReportViewer1.Refresh()

       Catch ex As Exception
           MessageBox.Show(ex.Message)
       End Try



Please help me or give me some ideas so i can finish my project... Thank You! :)GODBLESS :)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900