| SQL Text and Birt formating [message #650310] |
Mon, 24 January 2011 05:55  |
Ville Kaukonen Messages: 19 Registered: January 2011 |
Junior Member |
|
|
Hello,
I am reading a text type column from MS Sql database to Birt. On HTML everything looks fine but when I print it to PDF the text doesn't look ok anymore.
In PDF I don't get any line changes.
Datatype for the Birt element is String.
edit: Actually in PDF I only get the first line.
[Updated on: Mon, 24 January 2011 06:10] Report message to a moderator
|
|
|
|
| Re: SQL Text and Birt formating [message #650466 is a reply to message #650391] |
Tue, 25 January 2011 01:44   |
Ville Kaukonen Messages: 19 Registered: January 2011 |
Junior Member |
|
|
Basically it's text saved from normal html text box to database. It's in MS SQL Text type column.
So I believe that text comes with char(13)+char(10) line changes. Or atleast that has been common earlier. I tried to replace those marks in Birt with a placeholder, but I saw no replacement. dataSetRow["Lisätietoja"].replace(String.fromCharCode(13)+String.fromCharCode(10), "</ br>")
Also I tested to export the document to word. There the lines changes worked just fine.

Example of my problem.
[Updated on: Tue, 25 January 2011 02:42] Report message to a moderator
|
|
|
|
| Re: SQL Text and Birt formating [message #650696 is a reply to message #650589] |
Wed, 26 January 2011 02:02  |
Ville Kaukonen Messages: 19 Registered: January 2011 |
Junior Member |
|
|
Alright!
Yeah I had just drag and dropped the data set from the data source menu to the project. Now I added a new Dynamic Text box and bind it to data source. I actually had tried this before, but i got reference errors. Now that I did the biding correctly on the dynamic textbox, the text output was like magic.
So problem solved. Thank you very much.
[Updated on: Wed, 26 January 2011 03:12] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01631 seconds