Crystal Reports: Use Sub-Report parameter values in Main-Report -


i have sub-report takes 2 date parameters (start , end date)
main-report has sub-report nested in it. when refresh report, prompt enter dates.
i'm trying display dates in (start date - end date) format on main-report.

here's tried.

created formula (sharedstartdate) in sub-report as

shared stringvar startdate :=  totext({?@start_dt},"mm/dd/yyyy"); startdate; 

created formula in main-report same name (sharedstartdate)

shared stringvar startdate; startdate 

when use formula in main-report, empty text.

i'm not sure doing wrong, i'm pretty new working cr
thank guys in advance suggestions.

take care of few things while passing value main report.

  1. formula need placed on sub report before passing value.
  2. when value used in main report resulting formula should kept in coming sections in design.. not in preceeding sections won't value.
  3. one more option (not suggested)since manuplating parameters link parameters mainreport subreport , use parameter @ section irrespective of sub report location in report.

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -