creating sub report

Stimulsoft Reports.NET discussion
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

creating sub report

Post by majidsoft »

hi
i want to create a two sub report in my main report each of my sub report have a databand and header i want when my report is load if any of sub report have no any data in databand that sub report not shown even header of that sub report
i want if sub report have no data completely not shown but another sub report if have data shown in a report
thanks
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

creating sub report

Post by Ivan »

Hello,

Sorry, maybe we did not exactly understood your question. Could you explain your issue in more details.
By default the PrintIfEmpty property of Headers is set to false, so if databand has no data then the header is not shown.

Thank you.
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

creating sub report

Post by majidsoft »

hi
thanks for your attention im not working with subreport before with stimul and i don know how to use it i use this code to create a report
StiReport.Dictionary.Variables("code").Value = 82400359
StiReport.Compile()
StiReport.Render()
StiReport.Show()
i have sub report in my main report my main report is shown with this code know i want to filter my sub report with this code what i must to do
thanks
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

creating sub report

Post by Jan »

Hello,

Please check Demo application from standard delivery of our product. Category "SubReports".

Thank you.
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

creating sub report

Post by majidsoft »

hi
icant find any thing about subreport in demo program in program no any subreport is exist in your video link either no any video about subreprot please send me a link of that
thanks
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

creating sub report

Post by Andrew »

Hello,

Please run Demo.exe and select the category in a red rectangle as shown on a picture below.



Thank you.
Attachments
420.1.png
420.1.png (21.08 KiB) Viewed 3808 times
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

creating sub report

Post by majidsoft »

hi
i know this part but i use vb.net 2008 i want to load sub report in my main report but i want to load a sub report with parameter in my main report but i use the parameter to load my subreport but i can send a parameter in main report i write it in topic now i want to know how to change this codes to load a subreport with a parameter
thanks
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

creating sub report

Post by Jan »

Hello,

Can you say where you get value for parameter for SubReport and how you want apply it (filters, conditions or etc)?

Thank you.
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

creating sub report

Post by majidsoft »

HI
i i get a parameter in my main program and send it with value in report i use variable in my paramater expression
thank you
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

creating sub report

Post by Jan »

Hello,

You need use same methodic for parameters in subreports (when your subreports placed in report) as for main report. No difference.

Thank you.
Post Reply