Labels according to columns with "x"

Stimulsoft Reports.NET discussion
Post Reply
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Labels according to columns with "x"

Post by Jennypi »

Hello,

One of my users submitted me a file from which he would like to print labels.
The file looks like this:
Sample | Test1 | Test2 | Test3
A | | x| x
B | x| | x
C| x |x| x

It would give 7 labels:
Sans titre.png
Sans titre.png (3.07 KiB) Viewed 1976 times
Do you have an example in your support DB which would help me to design such a report?
I've never done that before, so I don't know where to start...

Thanks for your help!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Labels according to columns with "x"

Post by Alex K. »

Hello,

You can use the additional Child DataBand components and Conditions for them.

Thank you.
Attachments
Sample.xlsx
(7.93 KiB) Downloaded 167 times
ReportSample.mrt
(11.1 KiB) Downloaded 219 times
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Re: Labels according to columns with "x"

Post by Jennypi »

Thanks for your reply.
One question: what is the benefit of having 2 datasources, compare to using only "Excel1" one? It seems that the second one only groups by the sample number, but couln't you use a GroupHeaderBand instead?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Labels according to columns with "x"

Post by Alex K. »

Hello,

You can remove second data source. Was added for tests.

Thank you.
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Re: Labels according to columns with "x"

Post by Jennypi »

OK thank you, I adapted your example and managed to have the report working perfectly for my need!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Labels according to columns with "x"

Post by Alex K. »

Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply