Hello everybody
I`ve initialized and displayed an embedded Crystal Reports report in my application using the code below.
In the Activate event of the form I call the viewer control`s Refresh function. When this occurs the viewer control no longer holds the parameter field value I had passed it. Also the recordset remains unchanged, when I have now deleted a record or two.Code:Private Sub LinkViewerToReport() CrystalReport_listaEtairiwn.Database.SetDataSource rsListaEtairiwn, 3, 1 Set p1 = CrystalReport_listaEtairiwn.ParameterFields.GetItemByName("Title") p1.AddCurrentValue (rsYphresia.Fields("Yphresia").Value) CrystalActiveXReportViewer1.ReportSource = CrystalReport_listaEtairiwn CrystalActiveXReportViewer1.ViewReport End Sub
Am I missing something?
thx, in advance
George Papadopoulos




Reply With Quote