Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Blank line when exporting to CSV Post Reply Post New Topic
Author Message
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet Topic: Blank line when exporting to CSV
    Posted: 11 Jul 2013 at 11:54pm
Hi all,

Question, and I am not even sure if this is possible.
We receive a file from a client on a daily basis. This is in a text format. I need some of the data in it for some reports. Crystal isn't really liking .txt files as dataset, so I created an Access database, linked the text file, and used this as a data-set in Crystal. This works perfect, no issues there.

However, in the .txt file, there is an empty line at the bottom of the report. And that is causing an issue. Because I need to export my report to a .CSV format. And the empty line at the bottom shows on my report. When I open my file in Notepad++, there is the empty line again. And the program where I need to transfer the report to, isn't accepting this.

I tried different ways to get rid of the empty line. I tried suppressing blank sections: didn't work.
I tried every single way of exporting it as .CSV: didn't work.

I am running out of ideas, I really don't want to go into the original file every day (sometimes multiple files a day) to check if there is an empty line, and if so, delete this.

Is there any way to get rid of this?

Any help would be deeply appreciated.

Kind regards

Gerben
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 12 Jul 2013 at 12:05pm
Does the empty line have commas in it or is the problem that there is just a carriage return on the last line of the export?
 
-Dell
IP IP Logged
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet Posted: 14 Jul 2013 at 9:35pm
There is nothing in the empty line. When I look at the report in Excel, it looks fine. However, when I open it in Wordpad++ is shows that there is an empty line.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 15 Jul 2013 at 10:39am
Are you expecting the end of file to be at the end of the last line of data?  Or is the issue that there are, for example, two carriage returns at the end instead of one?
 
-Dell
IP IP Logged
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet Posted: 15 Jul 2013 at 9:35pm
I expect the end of the file to be the end of the last line. Now, it looks something like this:

Data;Data;Data;Data;Data;Data
Data;Data;Data;Data;Data;Data
Data;Data;Data;Data;Data;Data
Data;Data;Data;Data;Data;Data
null

And I expect it to look something like:
Data;Data;Data;Data;Data;Data
Data;Data;Data;Data;Data;Data
Data;Data;Data;Data;Data;Data
Data;Data;Data;Data;Data;Data


Does that make any sense?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.