Crystal report won't refresh

thepooh

New member
Joined
Jul 17, 2003
Messages
3
Location
Malaysia
Earlier, I created a Crystal Report. Then, I added a group section to it.

But even after Ive added the group section, when I view it in the browser, it still shows the old report. What can I do to refresh it?

In the page load, I put this code inside:

Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("CBC"))
Dim MyCommand As New SqlCommand("CBCSpReportBNM", myConnection)

MyCommand.CommandType = CommandType.StoredProcedure

Dim MyDA As New SqlClient.SqlDataAdapter
MyDA.SelectCommand = MyCommand

Dim myDS As New dsBNM
MyDA.Fill(myDS, "CBCSpReportBNM")

Dim oRpt As New crBNMreport

oRpt.SetDataSource(myDS)

crvBranch.ReportSource = oRpt



Or should I set the ReportSource with Custom Bindings "C:\inetpub\wwwroot\proj\MyReport.rpt" ??
 
Im so sorry, its my mistake. I just realised that I forgot to change the report name at this line of code:

Dim oRpt As New crBNMreport

The report name is crBrReport instead of crBNMreport.

Its working now. Thanks....
 
Back
Top