Hi,
I am using VB.net 2005 and Crystal Reports 2005.
Schema is used using .xsd file. The order of the fields in .xsd is the same as i am using (select query )to get the recordset.
I am getting the error The data source object is not valid on the Report.SetDataSource() method and report is not loaded.
I have no idea why this error pops up..
Any ideas.
CODE BELOW
crpRep = New CrystalDecisions.CrystalReports.Engine.ReportDocument
crpRep.Load(Application.StartupPath & "\PrintChecks.rpt")
'crpRep = oprt
crpDatabase = crpRep.Database
crpTables = crpDatabase.Tables
crpTable = crpTables.Item("DT_PrintChecks")
crpTable.Location = Application.StartupPath & "\DS_PrintChecks.xsd"
crpTable.SetDataSource(mRS)
Thanks,
Smitha
I am using VB.net 2005 and Crystal Reports 2005.
Schema is used using .xsd file. The order of the fields in .xsd is the same as i am using (select query )to get the recordset.
I am getting the error The data source object is not valid on the Report.SetDataSource() method and report is not loaded.
I have no idea why this error pops up..
Any ideas.
CODE BELOW
crpRep = New CrystalDecisions.CrystalReports.Engine.ReportDocument
crpRep.Load(Application.StartupPath & "\PrintChecks.rpt")
'crpRep = oprt
crpDatabase = crpRep.Database
crpTables = crpDatabase.Tables
crpTable = crpTables.Item("DT_PrintChecks")
crpTable.Location = Application.StartupPath & "\DS_PrintChecks.xsd"
crpTable.SetDataSource(mRS)
Thanks,
Smitha