Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# CrystalReports
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 27-Apr-13 2:02am

1 solution

Rate this: bad
good
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()))
 
me.reportviewername.localreport.setparameters(reportParam)
 
me.reportviewername.refresh()
 
Of course that is assuming that you are configured correctly once you receive the row. Smile | :)
  Permalink  
Comments
Member 9846414 at 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
0 OriginalGriff 7,853
1 Sergey Alexandrovich Kryukov 7,107
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 27 Apr 2013
Copyright © CodeProject, 1999-2014
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