Not font in black and break line in PDF

0

Hello,
good afternoon.

I am new generating reports and I have some doubts.
I'm working with Openxava and I want to implement the creation of a PDF with a button.

What I do is have an action that serves to print a report, taking data that complement between database and data that the user enters in a jsp.

But when I print the report, it does not print the line breaks correctly, it does not show me "\ n", but it does not return the carriage, the parameter logically I put it in a TextField, and when I want to concatenate a variable, ("\ N") and text, when inserted manually there is no problem and it does.

Example of user introduction:

Hello,
how are you today?
I hope you have a good day.

But to pass it to the report and print the variable appears like this:

Hi, how are you today? I hope you have a good day.

To pass the parameter I do it this way:

Parameters = new HashMap ();
Parameters.put ("variable", getView (). GetValue ("cadenalarga"));

There is no trace error, so I can not put it.
Inside the jrxml I have tried something like:

$P{variable} .replaceAll ("\ n", "<br>")

But it does not find any, so I put it in the report itself to change the Markup to HTML, but if it does not find anything, it leads me to think that the problem is that extracting the database variable does not receive any "\ n"

Furthermore, my font only show in normal mode, don't show Strong
I appreciate your help.
I will continue to try things.
Thank you for your help in advance.

fran_garmon's picture
Joined: Apr 19 2017 - 1:21am
Last seen: 3 years 4 months ago

0 Answers:

No answers yet
Feedback