Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Exporting to Excel - blank fields Post Reply Post New Topic
Author Message
jennifer_falcon
Newbie
Newbie
Avatar

Joined: 15 Jan 2009
Online Status: Offline
Posts: 35
Quote jennifer_falcon Replybullet Topic: Exporting to Excel - blank fields
    Posted: 29 Sep 2011 at 9:30am
Good Day,

I have a report where I need to export the information to excel.

My data can look like this:

Number Status   OpenDate  CloseDate           Closedby       Model#
123       Closed   01/01/11   01/02/11             tjones           JKKJHH
124       Closed   01/01/11   01/03/11             tjimes            KYHSNF
125       Open     02/01/11                                                    THHSSE
126       Closed   02/01/11   01/04/11             jdoe              JJSDJSM

When I export the data to excel, it looks like this:

Number Status   OpenDate  CloseDate           Closedby       Model#
123       Closed   01/01/11   01/02/11             tjones           JKKJHH
124       Closed   01/01/11   01/03/11             tjimes            KYHSNF
125       Open     02/01/11    THHSSE
126       Closed   02/01/11   01/04/11             jdoe              JJSDJSM

Whenever I have a blank CloseDate or Closedby, the information from the Model# field moves over to the CloseDate field.

I have aligned my columns. I have set up the fields so they are all the same size. I have the column headers in my report header. The data lines up with the ruler. I have aligned the tops of the rows...nothing seems to work.

Any idea how I can trick Excel into thinking the fields are populated without actually putting data into that field?

Any help would be greatly appreciated!


IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Sep 2011 at 9:52am
just an idea but maybe convert it to a string and insert a "" to replace the NULLs:
 
if isnull(closedate) then "" else totext(closedate,"MM/dd/yy")
 
if isnull(closeby) then "" else closeby
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.000 seconds.