Problem with HTML Text Box

1 Answer 21 Views
HTMLTextBox
Francis
Top achievements
Rank 1
Francis asked on 27 Mar 2025, 03:52 PM

Hi, in a report, I need to display, in one text box the first name in bold, a space and the last name (not in bold). first name and last name come from a data source.

I use a HTML Text Box and in the Expression Editor, I type :

=Fields.FirstName + " " + Fields.LastName

And I Put Fields.FirstName in bold. The result is :

[=<strong>Field.FirstName</strong> + " " + Fields.LastName]

But when I preview the report, I have the error :

An error has occured while processing Table 'listEleves':
htmlTextBox1.Value expression [=<strong>Fields.FirstName</strong> + " " + Fields.LastName] is not valid:
Syntax error: Missing operand before '<' operator.

What is wrong ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
answered on 27 Mar 2025, 04:09 PM

Hello Francis,

Can you try this in the HTML editor:

That should do the work. You can use the Design View. Put in some placeholders for the fields. Select the first one and bold it through the editor above. Attached, you can see a sample report. You could switch to "Html view" to see the actual expression that would look like:

<strong>{Fields.first}</strong> {Fields.last}

Keep in mind that there is no "=" in the beginning.

Let me know if that works and the problem is resoled on your side.

Regards,
Krasimir Baylov

 

Tags
HTMLTextBox
Asked by
Francis
Top achievements
Rank 1
Answers by
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or