Link to home
Start Free TrialLog in
Avatar of odonovanpm
odonovanpm

asked on

Spaces in File

I am having trouble getting a text field from a database to display correctly in a csv file.

The ASP.NET application collects information from several database tables and returns it as one csv file. This works fine but there is one field called "Message" which is a text field in SQL Server, people use it to type in messages for deliveries with a certain product. The message field is the only one giving problems, if I replace it with any other field the format is fine.

I think that there must be line breaks (or similar) being inserted in the streamwriter when creating the csv file. How should I prepare the field for input into the file???
SOLUTION
Avatar of Timbo87
Timbo87

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial