Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Crystal Reports .NET Visual Studio 2005

Hi There,

I have one report in my c# web application that doesn't work. There is a button to run the report and the report loads fine. When I click the next page button on the report viewer, the entire report disappears. If I click the run button again, page 2 gets displayed. I click the next page button again and the report disappears. I tried recreating the entire report with new controls and tried different datasets, but the same thing happens each time.

Any ideas would be appreciated.

Thanks.

Paul O

Here is the code for displaying the report (it's the same stuff that works for all the other reports):

protected void Button1_Click(object sender, EventArgs e)

{

ReportDocument rdoc = new ReportDocument();

rdoc.Load(Server.MapPath("Report1.rpt"));

rControlsTableAdapters.vwPaulTableAdapter cta = new rControlsTableAdapters.vwPaulTableAdapter();

rdoc.SetDataSource((DataTable)cta.GetData());

CRViewer.ReportSource = rdoc;

}

Not what you were looking for? View more on this topic or Ask a question