Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter refresh problem

Status
Not open for further replies.

countdigit

Programmer
Nov 6, 2003
7
ID
hi guys, i'm entering parameters to a report programaticaly so i also suppress the parameter prompting whenever i refresh the preview of my report. but i notice that parameter values are lost and not retained whenever i press the refresh button. is there a way to keep my parameter values and still display these values after a click on the refresh button.

please share me your insights about this matter.

thank you very much and have a nice day.

countdigit
 
In Crystal 8.5, you can set default values for any parameter. Also the flash icon gives you the option of refeshing without changing values. Which version of Crystal do you have?

Madawc Williams
East Anglia, Great Britain
 
hi Madawc, thanks for the reply. I'm using Crystal Report 98
on Windows Professional with Visual Basic 6.

"In Crystal 8.5, you can set default values for any parameter"

doesn't it vanish when you click on the refresh button?

"Also the flash icon gives you the option of refeshing without changing values"

i think this box is also suppressed when you turn off the
parameter prompting, i.e.,
CRXReport.EnableParameterPrompting = False
is there a way to answer No programaticaly (so no prompts appear) to the question box and refresh without resetting the previous values of the parameters.

 
There isn't a Crystal Reports 98.

Pass the parameters again "programatically" and refresh the report if need be.

-k
 
hi synapsevampire, sorry about the typo "8". I'm using crystal report version 9.

"Pass the parameters again "programatically" and refresh the report if need be"

can you be more specific? i'm trying exactly this but i'm having a hard time. The parameter does not get the values I set, i.e,

Private Sub CRViewer91_RefreshButtonClicked(UseDefault As Boolean)
'''
Set CRXParamDefs = CRXReport.ParameterFields
For Each CRXParamDef In CRXParamDefs
With CRXParamDef
Select Case .ParameterFieldName
Case "Param_CompanyName"
.SetCurrentValue strCoName
Case "Param_GrandTotal"
.SetCurrentValue (999)
Case "AgeingDate"
'.SetCurrentValue (Format(dtpAgeingDate.Value, "mmm dd, yyyy"))
.SetCurrentValue (Format("12/08/2003", "mmm dd, yyyy"))
Case "Param_Title"
.SetCurrentValue "THIS IS THE TITLE"
End Select
End With
Next
'''

End Sub

Or is there a property to set for CRXReport to retain it's parameter values even after clicking refresh.

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top