Click here to Skip to main content
15,888,334 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am creating a rdlc report to print barcode where i post the barcode and item information from the database to new created bcodeds.xsd and DataTable1 is a datatable, i am writing the fallowing code but i am getting error

C#
Dim newCustomersRow As bcodeds.DataTable1Row
    newCustomersRow = bcodeds.DataTable1.NewDataTable1Row()
    newCustomersRow.bcode = "112252"
    newCustomersRow.iname = "toy train"
    newCustomersRow.icomp = "abs"
    newCustomersRow.irate = 99
    bcodeds.DataTable1.Rows.Add(newCustomersRow)

but i am getting fallowing error while writing the code reference to non shared memberrequire an object reference .
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