Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh not very fresh
Message
 
À
13/04/2004 21:05:30
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Divers
Thread ID:
00894638
Message ID:
00895164
Vues:
17
Try adding crvMoveOutDisposition.RefreshReport() at the end of your procedure.

---TML

>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!!!! :)
Thomas M. Lamm
Bradbury & Associates
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform