I don't know what's happening (I have zero experience with LazReport) but by the error it sounds like the problem isn't markup in general but the specific text "[?]".
Can it be that LazReport expects to have a field name specified in that way i.e. "[fieldname]"? If so, there must be a way to scape it somehow.
Yeah, Markup text - specific characters... same thing to me
Its called markup in my app because it is added tags to help make the text code view-able in 3rd party viewer apps, kind of the same as html "<>" are technically characters, but we call it markup... same for BBCode, markup.
Field name... No, because if that were the case, then it would give me and error saying need to assign field name to data (or similar message).
This is pretty basic stuff.... if normal characters work, and I did a sample project with two pages of plain normal Memo1.text, and it all worked, except that text didn't have any specialized characters.
I am sure this was made like this on purpose, why i don't know.
If that is true, then LAZ Report is pretty much useless if you want to print source code. It can only be used on normal text and database fields.