Ahmadal_najjar2003
asked on
Change text on crystal report
Salam
I have a crystal report that have text fields , which I want to change thier text inside the code.
Dim MyReport As New CashierClosedByCashierClos edIDRPT
MyReport.Section2.ReportOb jects.Item ("ClosedDa te").text= SomeThing
but error come up like this
Error 7 'text' is not a member of 'CrystalDecisions.CrystalR eports.Eng ine.Report Object'.
I have a crystal report that have text fields , which I want to change thier text inside the code.
Dim MyReport As New CashierClosedByCashierClos
MyReport.Section2.ReportOb
but error come up like this
Error 7 'text' is not a member of 'CrystalDecisions.CrystalR
ASKER
FIrst it is a text not a database field
Second I tried your code but give error :
Error 7 Property 'Item' is 'ReadOnly'.
Second I tried your code but give error :
Error 7 Property 'Item' is 'ReadOnly'.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Another option is to pass parameters to the report and use as text.
ASKER
That's really bery nice function
Thank you vey much
Thank you vey much
I think you can just change it
MyReport.Section2.ReportOb
What version of Crystal?
mlmcc