Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET 2.0 Crystal report problem

Status
Not open for further replies.

joggi

Programmer
Nov 8, 2006
44
YU
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)
 
I think I am missing namespace, I have:

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

Why I cannot instance report as new Test?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top