Home All Groups Group Topic Archive Search About
Author
4 Apr 2005 11:10 AM
Michael Chong
How can I change the value of a parameter/object field inside the crystal
report at runtime process. TQ

Michael

Author
4 Apr 2005 2:59 PM
raulavi
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


Show quoteHide quote
"Michael Chong" wrote:

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