Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh not very fresh
Message
De
13/04/2004 21:05:30
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Refresh not very fresh
Divers
Thread ID:
00894638
Message ID:
00894638
Vues:
43
My problem is that clicking the refresh button on the Crystal Report Viewer component doesn't do what I'm thinking of as "refresh". Even if the data in the DataSet has changed, clicking Refresh doesn't cause the report to reflect the changes. It just keeps showing the report just like it was when the .ReportSource property of the viewer was set to the ReportDocument. Here's my code:

Private Sub crvMoveOutDisposition_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles crvMoveOutDisposition.Load
Dim rpdMoveOutDisposition As CrystalDecisions.CrystalReports.Engine.ReportDocument
rpdMoveOutDisposition = New crpMoveOutDisposition
rpdMoveOutDisposition.SetDataSource(dsTRO)
crvMoveOutDisposition.ReportSource = rpdMoveOutDisposition
End Sub

dsTRO is a typed dataset generated from an XML schema. I have a form a Tab control. On the first several tabs are TextBoxes bound to fields in a table in dsTRO. On the last tab is the Crystal Report Viewer. I load an XML file into dsTRO and all the TextBoxes show the correct data. I click on the CRV tab (I'm assuming this is when the crvMoveOutDisposition_Load event fires because I get a nice delay here) and the report show in the Viewer perfectly. I switch over to a different tab and change some data, then switch back to the Viewer tab and click the Viewer's refresh button. Nothing changes. The report still shows the data as it was before I changed it. dsTRO has the changed data, because I can do a dsTRO.WriteXML(...) and it writes the changed data out. If I exit the program, start it back up again, load the new XML file and click on the Viewer tab, the report shows the changed data. But if I again make a change to the data and click on the Viewer tab and click Refresh, it doesn't show the change.

What am I doing wrong? HELP!!!! :)
-----
Lee Perkins
TigerBase Technologies

"Lee is one that would plug his brain into the internet, if he could, and STILL scream for more" - Very good friend of Lee's
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform