Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How to get all days in month(from 1 to 31) default Post Reply Post New Topic
Author Message
vgutta
Newbie
Newbie


Joined: 19 Mar 2012
Online Status: Offline
Posts: 4
Quote vgutta Replybullet Topic: How to get all days in month(from 1 to 31) default
    Posted: 19 Mar 2012 at 6:26am
How to get all days in month(from 1 to 31) by default as first column
The output is as follows....Any suggestions

I need to get the days even if there is no data
Days of month     Jan Feb Mar .........................Dec
1
2
3
4
....

31
 
Thanks in advance
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 19 Mar 2012 at 8:18am
i can only think of a manual way which could be a lot of work and not a good solution, but here it is any way
group on month formula
totext(month(table.date),0,"")
expend your group header
create 31 text boxes place them into your group header
then create 31 formulas something like
if table.date in date("01"+","+{@month}+","+"2011") to date("02"+","+{@month}+","+"2011") then table.value
place then place them next to the right text box
then right click on text boxes 29-31 (separately)go
format text > common tab >click x-2 next to suppress and write according to your calendar like
 {@month} = "2"

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.016 seconds.