Click here to Skip to main content
15,891,765 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i am new to crystal report.Actuvally i have a report like this


Studentreport


Header section
RollNo:12478 name:chiti



DetailSection:


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 report.so 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

1 solution

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()))

me.reportviewername.localreport.setparameters(reportParam)

me.reportviewername.refresh()

Of course that is assuming that you are configured correctly once you receive the row. :)
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900