Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Displaying Report Header (when no data) Post Reply Post New Topic
Author Message
sontin
Newbie
Newbie
Avatar

Joined: 21 Jun 2012
Location: Canada
Online Status: Offline
Posts: 3
Quote sontin Replybullet Topic: Displaying Report Header (when no data)
    Posted: 21 Jun 2012 at 7:59am
Hi,

I am fairly new to Crystal, and am using CR 2008 version. I have a report which needs to be modified. My report is designed in following way:
1. Report details - fetches & displays data from db (say x) based on dates from db (say y)
2. Report header - fetches & displays header which includes dates from db y

My problem is: for a query which returns no data from db x (based on the dates from db y), my header report gets suppressed automatically. I have valid dates from db y, however the header do not display them since the detail section is blank. (maybe this is because of the inner-join on db x & y).

My header say "Report for the range: (from) & (to)". So even when there is no data to be displayed, I still want the header to show the date range. Any suggestions on how I can handle this situation?

Thanks and cheers!

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 22 Jun 2012 at 3:55am
I would make sure you're linking from y to x and make the join a Left Outer Join (right click on the join and select Link Options.)  This will get you data from y even if there is no corresponding data in x.
 
-Dell
IP IP Logged
sontin
Newbie
Newbie
Avatar

Joined: 21 Jun 2012
Location: Canada
Online Status: Offline
Posts: 3
Quote sontin Replybullet Posted: 22 Jun 2012 at 9:21am
Technically I do not have a direct join. Both my tables are not linked with each other. I have added table y, without any links.

So I retrieve dates from table y and use them to fetch data from table x.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 22 Jun 2012 at 9:34am
What is the Selection formula for your report?
-Dell
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.