CSV Datasource

Stimulsoft Reports.NET discussion
Post Reply
flo78
Posts: 11
Joined: Fri Mar 11, 2011 2:20 am
Location: Austria

CSV Datasource

Post by flo78 »

Hello,

I am using a csv file as datasource. Delimiter symbol is semicolon. Could you tell me how to escape this symbol when it appears as part of a string value.
In your documentation you tell to frame it with double quotes. Doing so, the report recognizes that the semicolon is part of the string, but shows it as ";" and not only as ;

Another question:
One column in the csv file is a path to an image file. I have an Image control in the report whose hyperlink property is set to this value.
But the link always has to be written as an absolute path, which is a problem because I want to copy the report into various folders and don't want to adapt the path each time. Report, csv and images always are in the same folder. Is it possible to use a relative path (= only the name of the image file) ?

Thank you very much.
flo78
Posts: 11
Joined: Fri Mar 11, 2011 2:20 am
Location: Austria

CSV Datasource

Post by flo78 »

OK, the thing with the path is nonsense. Of course a relative path refers to the location of the Designer.exe and not to the path of the mrt-file.
But still I don't know how to escape semicolons...
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

CSV Datasource

Post by Ivan »

Hello,

Please check the sample in attachment.

Thank you.
Attachments
1394.sample.csv
(51 Bytes) Downloaded 210 times
flo78
Posts: 11
Joined: Fri Mar 11, 2011 2:20 am
Location: Austria

CSV Datasource

Post by flo78 »

OK, you have to put the whole string between double quotes, not only the semicolon itself.

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

CSV Datasource

Post by Alex K. »

Hello,

Let us know if you need any additional help.

Thank you.
Post Reply