How to add line break in Barcode

Stimulsoft Reports.JAVA discussion
Post Reply
simon ren
Posts: 105
Joined: Wed Nov 21, 2018 12:51 am

How to add line break in Barcode

Post by simon ren »

Hello,
Could you please advise how to insert a line break in a 2D barcode? Specifically, for a QR code, I need the scanned content to display as:
123
456
rather than 123456. How can I add a line break after "123"?


Thank you.
Max Shamanov
Posts: 975
Joined: Tue Sep 07, 2021 10:11 am

Re: How to add line break in Barcode

Post by Max Shamanov »

Hello,

Could you please send us a sample report with test data that reproduces the issue for analysis?

Thank you.
simon ren
Posts: 105
Joined: Wed Nov 21, 2018 12:51 am

Re: How to add line break in Barcode

Post by simon ren »

QQ截图20250428092751.png
QQ截图20250428092751.png (166.55 KiB) Viewed 480 times
report .mrt
(8.85 KiB) Downloaded 69 times
Lech Kulikowski
Posts: 7259
Joined: Tue Mar 20, 2018 5:34 am

Re: How to add line break in Barcode

Post by Lech Kulikowski »

Hello,

Try to use the following expression:
{"123" + "\r\n" + "456"}

Thank you.
simon ren
Posts: 105
Joined: Wed Nov 21, 2018 12:51 am

Re: How to add line break in Barcode

Post by simon ren »

Hello,

After configuring as you instructed, the scan results still aren't wrapping.
Image
Image

Are there any other methods?

Thank you.
Attachments
QQ截图20250612104602.png
QQ截图20250612104602.png (194.58 KiB) Viewed 28 times
360截图20250612104340.png
360截图20250612104340.png (100.36 KiB) Viewed 28 times
Lech Kulikowski
Posts: 7259
Joined: Tue Mar 20, 2018 5:34 am

Re: How to add line break in Barcode

Post by Lech Kulikowski »

Hello,

Try to use the following expression:
{"12345" + "\r\n" + "678901"}

Thank you.
Post Reply