QRCode text with multiple lines

Stimulsoft Reports.JS discussion
Post Reply
fredericoCMF
Posts: 2
Joined: Mon Sep 06, 2021 9:30 am

QRCode text with multiple lines

Post by fredericoCMF »

Hello,

I am using QRCode in my document, but I couldn't find a way to display the content with multiple line.
When writing the code in the text form the new lines are ignored. Is there any way to have new lines or it is a limitation?

e.g.
After I scan the QRCode
Instead of displaying:

Material:123Product:ABC

I would expect something like this

Material:123
Product:ABC


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

Re: QRCode text with multiple lines

Post by Lech Kulikowski »

Hello,

Please check the following expression:
{"Material:123\nProduct:ABC"}

Thank you.
fredericoCMF
Posts: 2
Joined: Mon Sep 06, 2021 9:30 am

Re: QRCode text with multiple lines

Post by fredericoCMF »

Hello,

Thank you for the answer! :)

I already found a way to do that.
Actually i had to use a carriage return

"Material: 123\r\nProduct: ABC"

But only using a variable, because if you try to write it on the text editor it does not work.

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

Re: QRCode text with multiple lines

Post by Lech Kulikowski »

Hello,

You are welcome!
Post Reply