CSV Export 2 extra spaces
Hello,
I'm using fastreport 4.9. When exporting a report to CSV file, there is 2 extra spaces at the end of each field.
Do you know how to avoid these 2 extra characters?
Thank you
I'm using fastreport 4.9. When exporting a report to CSV file, there is 2 extra spaces at the end of each field.
Do you know how to avoid these 2 extra characters?
Thank you
Comments
"206 ";;"23.11.1999 ";;"product ";"DC ";"Free License ";"number ";;"customer name ";
It is actually on each field and not between the fields that I have 2 extra spaces. These 2 spaces are not part of the field value. Any idea?
Because I believe you also have the extra field problem, I'll leave the answer for that here:
Jimmy, I had a similar problem, but solved it.
It happens because the items are not aligned in the page, like Oleg said.
Try to align every single memoview component vertically, both left and width properties identical with its header, or whatever other memoview object you have in the same vertical area in your page.
Try to visualise your page as columns, and for each column (i.e. each element displayed), you might have a new field in the export.
I suggest to start aligning your MasterData band objects with whatever header it has right above it (PageHeader, ColumnHeader, Header).
Also, make sure they don't overlap horizontally, preferably set autosize to false and adjust the width manually for all components.
dongles.fr3
Anyway, try my DoTrim function like explained here:
http://www.fast-report.com/en/forum/?p=/discussion/6677