Click here to Skip to main content
13,048,027 members (107,123 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi i am new to crystal report.Actuvally i have a report like this


Header section
RollNo:12478 name:chiti


subject phone address duration date marks garde

MM 040-2345 xx 2 25-10-2013 A

Phs 0808-67854 yy 4 26 -10-2013 B

this my report for this i want to create a sub report in this i was done like this by going throught these steps

Step1:i right click on detail section and click on subreport
Step2: a dialog box will open in that subreport tab i choose .in that i select 3 one means"create a subreport with rep[ort wizard" in that i given a name and click on report wizard like that click next every time a get a report with blank one
step3: in that blank one i was design as per our reqrement

finally i was done that but here prblm is when iwas click on subreport at subject coloumn at mm row only rollno, name ,mm only this values are going to sub report but our req is i have to pass address ,durattion ,date,grade marks also

so plz help me how to pass one row in details to parameters in subreport
Posted 27-Apr-13 1:02am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Just pass a row?

dim myRow = theRowToPass .... decide here what you need, i.e. tostring before you pass ... I assumed the row as a string array

dim reportParam(0) as Microsoft.reporting.winforms.reportparameter

reportParam(0) = new Microsoft.reproting.winforms.reportparameter("ReportParameterName", CType(myRow.ToArray(GetType(String)), String()))



Of course that is assuming that you are configured correctly once you receive the row. :)
Member 9846414 9-May-13 3:20am
thank u very much responding to me .i was done by using formula felid

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 27 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100