csv datasource newline

Stimulsoft Reports.NET discussion
Post Reply
melzer
Posts: 17
Joined: Wed Oct 03, 2012 9:07 am

csv datasource newline

Post by melzer »

Hi,

I created a report with a csv-datasource. Some text columns contain newline characters. For this I am using hex 0D0A, but this brings a rendering exception ('the index was outside the bounds of the array'). What character do I have to write into the csv-file to be displayed on the report as a newline? Does the stitextbox in the report have to be formatted in a certain way?

Thank you very much.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: csv datasource newline

Post by Alex K. »

Hello,

Can you please send us your report with test data for analysis.

Thank you.
melzer
Posts: 17
Joined: Wed Oct 03, 2012 9:07 am

Re: csv datasource newline

Post by melzer »

Hello,

in the csv file the first line is without newline character, in the second line there is a hex 0D between the two words.

Regards, Florian
Attachments
test.mrt
(6.85 KiB) Downloaded 505 times
test.csv
(50 Bytes) Downloaded 409 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: csv datasource newline

Post by HighAley »

Hello.

Please, put your text with line line break in the double quotes.
Look at the attached file.

Thank you.
Attachments
test.csv
(53 Bytes) Downloaded 413 times
melzer
Posts: 17
Joined: Wed Oct 03, 2012 9:07 am

Re: csv datasource newline

Post by melzer »

Thank you very much, Aleksey, this works!
But it seems that you need at leat version 2012.1, for those who might be interested in this issue.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: csv datasource newline

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply