How to spread data over mutliple labels?

Stimulsoft Reports.NET discussion
Post Reply
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

How to spread data over mutliple labels?

Post by Artimidor »

Hello there!

We've got the following problem: The idea would be to print labels on an A4 page with the main info at the first label and extra data (e.g. allergy information) on an attached label. If there are more allergies, the same amount of allergry labels should be printed, so we've attached a child data band to the product master data band. Which works fine so long as the text that should be printed on the extra label doesn't exceed the label's size (Height/Min Height/Max Height all are set to the same value). Nevertheless, the label extends beyond this fixed size. How is it possible to prevent this behavior and/or how could the exceeding text be moved to a third label? We've tried putting it all on a panel, but the result is the same. The CanGrow propery can be set or not, there's no change.

See screenshot how it currently looks like. The third label is extended, which shouldn't happen. I've attached the report for your reference.
Attachments
Report.mrt
(22.29 KiB) Downloaded 61 times
Screenshot 2022-10-24 084902.png
Screenshot 2022-10-24 084902.png (7 KiB) Viewed 657 times
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: How to spread data over mutliple labels?

Post by Artimidor »

Additional info... Here's what's irritating me the most: We've designed this exact label intitially as a regular label with a header, data and footer band for the allergy stuff (page width 5, hight 2.7). And below is how that looks like. All perfectly fine. As soon as the label size is changed to A4 (3 columns) and we try to print it, the allergy info extends beyond the label size and the header is not printed at all.
Attachments
Screenshot 2022-10-24 092125.png
Screenshot 2022-10-24 092125.png (20.02 KiB) Viewed 653 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: How to spread data over mutliple labels?

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: How to spread data over mutliple labels?

Post by Artimidor »

See first post.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: How to spread data over mutliple labels?

Post by Lech Kulikowski »

Hello,

We will try to find a solution for you. We will let you know about the result.

Thank you.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: How to spread data over mutliple labels?

Post by Lech Kulikowski »

Hello,

Please check the modified report in the attachment.

At the current moment, it will work only in the Compilation mode, from the next build it will work also in both modes.

Thank you.
Attachments
Report modified.mrt
(24.34 KiB) Downloaded 63 times
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: How to spread data over mutliple labels?

Post by Artimidor »

Thanks for the modified report.

Hmm... it helps, sort of. It seems to work at the first glance, but of course only so long as the text fits into a maximum of two labels. As soon as the text is longer than that, we're back at square one (see screenshot below). Is there any possibility of a general solution without adding multiple labels?

Note: Have a look at my second post in this thread. The reason why this works for non-A4 labels is that at regular labels there's a page break, which takes care of the issue. This works over multiple labels. What would be required to make this A4 problem work is a way to treat row/column breaks at A4 labels like page breaks. Unless there's a better way...
Attachments
Screenshot 2022-10-27 111144.png
Screenshot 2022-10-27 111144.png (12.22 KiB) Viewed 606 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: How to spread data over mutliple labels?

Post by Lech Kulikowski »

Hello,

There is no simple solution.
If it is as it is now - only by adding new labels.
Another option, directly in the code: render the old ones into small labels, and then use the code to lay them out on the pages.

Thank you.
Post Reply