Jump to content
Changes to the Jaspersoft community edition download ×

Not font in black and break line in PDF


Recommended Posts

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:

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.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...