Crystal Report

M

Michael Chong

How can I change the value of a parameter/object field inside the crystal
report at runtime process. TQ

Michael
 
G

Guest

this is what I have for cr v10 and formula name ,bet you that you can use
parameter using the same syntax.
oRpt = New ReportDocument 'Create CR Obj from class

Try
oRpt.Load(fullRptName)
Catch ex As Exception
MsgBox(ex.Message & vbLf & vbLf & fullRptName.ToString,
MsgBoxStyle.Critical, "Open Report")
Exit Sub
End Try

'oRpt.Load("f:\cr\RPTs\deletelg.rpt")
CrystalReportViewer1.ReportSource = oRpt


oRpt.DataDefinition.FormulaFields.Item(idx).Text = myValue
'overwrite the rpt param value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top