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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image is not getting changed

Status
Not open for further replies.

swetham

Programmer
May 5, 2010
257
0
0
DE
I have a picture box in the report and in the graphic location i have given {parameter field}. In vb.net i have wriiten as,
Dim crParameterDiscreteValue As ParameterDiscreteValue
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldLocation As ParameterFieldDefinition
Dim crParameterValues As ParameterValues

crParameterFieldDefinitions = cryrpt.DataDefinition.ParameterFields

crParameterFieldLocation = crParameterFieldDefinitions.Item("parameter field name")
crParameterValues = crParameterFieldLocation.CurrentValues
crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
crParameterDiscreteValue.Value = "E:\00.bmp"
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldLocation.ApplyCurrentValues(crParameterValues)


while displaying it is showing the picture used while placing the picture box on the report. Can anyone help me?
 
Please share your solution so this post becomes useful.

-LB
 
I have save dthe image paths in the database and used that field in the graphic location
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top