|
-
Jun 3rd, 2005, 12:43 AM
#1
Thread Starter
Hyperactive Member
Refresh method of viewer control (CLOSED)
Hello everybody
I`ve initialized and displayed an embedded Crystal Reports report in my application using the code below.
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
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.
Am I missing something?
thx, in advance
George Papadopoulos
Last edited by divined; Jun 7th, 2005 at 06:22 AM.
SteadFast!
-
Jun 3rd, 2005, 02:48 AM
#2
Thread Starter
Hyperactive Member
Re: Refresh method of viewer control
I think that the problem is that the embedded Visual Basic report seems to have cached the first recordset I gave it. Does anybody have any idea?
-
Jun 3rd, 2005, 04:21 AM
#3
Thread Starter
Hyperactive Member
Re: Refresh method of viewer control
The only way around I found is to make the report viewer form modal. Then when the form is closed I also unload the embedded report designer. This is the only way I could get the report to dynamically update the recordset.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|