1899813 - While viewing a Crystal report from an ADO.NET web application, report prompts for database information.

SAP Knowledge Base Article - Public

1899813 - While viewing a Crystal report from an ADO.NET web application, report prompts for database information.

Symptom

  • While viewing a Crystal report from an ADO.NET web application, report prompts for database information.
  • The reports are predesigned in Crystal designer.
  • The dataset is being created and the data is being passed to the report at runtime through code.

Environment

  • Visual Studio 2010
  • SAP Crystal Reports, developer version for Microsoft Visual Studio

Resolution

  • Use DataTable to pass data to the report instead of a DataSet.

For e.g.

Dim dt as a new dataset
DataTable datatable = dt.Tables["Table Name"]
CrReportDocument.ReportSource(datatable)

Keywords

KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio