I have web form with button Print to show report. I made Test.rpt based on the xsd file.
Protected Sub Print_Click
Dim Report As New Test
Report.DiscardSavedData()
Report.Database.SetDataSource(some datatable)
CRViewer1.ReportSource = Report
CRViewer1.ViewReport()
End Sub
1. Problem is that Report is not recognized as Test instance, so when I type Report. I don’t have report properties and error is “Database is not member of Test”
2. When I make xsd file like dataset.WriteXmlSchema(filename) everything is ok, but when I make datatable.WriteXmlSchema(filename) I got error "Cannot serialize the DataTable. DataTable name is not set." What is the difference between dataset.WriteXmlSchema(filename) and datatable.WriteXmlSchema(filename)
Protected Sub Print_Click
Dim Report As New Test
Report.DiscardSavedData()
Report.Database.SetDataSource(some datatable)
CRViewer1.ReportSource = Report
CRViewer1.ViewReport()
End Sub
1. Problem is that Report is not recognized as Test instance, so when I type Report. I don’t have report properties and error is “Database is not member of Test”
2. When I make xsd file like dataset.WriteXmlSchema(filename) everything is ok, but when I make datatable.WriteXmlSchema(filename) I got error "Cannot serialize the DataTable. DataTable name is not set." What is the difference between dataset.WriteXmlSchema(filename) and datatable.WriteXmlSchema(filename)