Re: Refreshing Crystal Rpt
Quote:
Originally Posted by Jefftopia
I use Crystal Rpt 8.0 via the Report Design Component in Visual Basic 6.
I am using the following method for calling up my reports:
VB Code:
With frmRptView
.Show
.CRViewer1.ReportSource = rptPrimDls3
.CRViewer1.ViewReport
End With
frmRptView is a form I use to call up all of my reports. The only thing on it is the CRViewer1 control.
My problem is that the report is not refreshing accordingly. If the user makes a change to the underlying table, which the report is based on, and then goes into view the report the change will not be reflected. It is only after the user exits the application and returns that the change will appear in the report.
Note: Doesn't seem to matter if I have the report set to 'Verify on Every Print' or not.
Thnx
:wave: :wave: :wave:
Try using CRViewer1.RecordSelectionFormula on your parameter so that every time a user presses the refresh button the report will look to the valu in the recordselectionformula.
Re: Refreshing Crystal Rpt
you can refresh your report by closing the odbc connection before calling this code.
Quote:
Originally Posted by Jefftopia
I use Crystal Rpt 8.0 via the Report Design Component in Visual Basic 6.
I am using the following method for calling up my reports:
VB Code:
With frmRptView
.Show
.CRViewer1.ReportSource = rptPrimDls3
.CRViewer1.ViewReport
End With
frmRptView is a form I use to call up all of my reports. The only thing on it is the CRViewer1 control.
My problem is that the report is not refreshing accordingly. If the user makes a change to the underlying table, which the report is based on, and then goes into view the report the change will not be reflected. It is only after the user exits the application and returns that the change will appear in the report.
Note: Doesn't seem to matter if I have the report set to 'Verify on Every Print' or not.
Thnx