etienne123
MIS
Hi Mike
Thank you for your advise yesterday re time schedules in Crystal, I have followd your instructions carefully - but the error I get is "NUMBER OF COPIES OF THE STRING IS TOO LARGE OR NOT AN INTEGER". Am I correct in the following...
The first formula {@to - from} goes to details
The second formula {@sched init} goes to Group header
The third formula {@sched accum} goes to Details, next to {@to - from}
The forth formula {@sched display} goes to Group footer
I must also surpress all existing data
??? I am sure I am missing something somewhere, please advise,...your message from yesterday below...
..."You can do this with 4 formulas and some formatting. You'll need to use a monospace font type. You'll need to group on your day.
I used "sched.class" to represent the [HIST] etc. above
Formula one formats the data to span your time columns. If you want the columns to be wider change the 10This formula goes in the details band:
{@to - from}
stringvar out;
numbervar spaces:=(({sched.to}-{sched.from})*24)*10 ;
out:="["+{sched.class}+replicatestring(" ",spaces-len({sched.class}))+"]"
You'll need three formulas to display the data.
This one goes in the group header.
{@sched init}
whileprintingrecords;
stringvar sched:=""
This one goes in the details band:
{@sched accum}
whileprintingrecords;
stringvar sched;
sched:=sched+{@to - from}
This one goes in the group footer:
{@sched display}
whileprintingrecords;
stringvar sched
Move the Group Name into the footer and suppress the group header and the details band.
It should look like this - (I eliminated the last "class" for display purposes):
8:00 9:00 10:00 11:00 12:00
Mon [MBA ][SLA ][HIST ]
Tue [SLA ][MBA ][GEN MAN ]
Wed [HIST ][MBA ][GEN MAN ]"
Thank you for your advise yesterday re time schedules in Crystal, I have followd your instructions carefully - but the error I get is "NUMBER OF COPIES OF THE STRING IS TOO LARGE OR NOT AN INTEGER". Am I correct in the following...
The first formula {@to - from} goes to details
The second formula {@sched init} goes to Group header
The third formula {@sched accum} goes to Details, next to {@to - from}
The forth formula {@sched display} goes to Group footer
I must also surpress all existing data
??? I am sure I am missing something somewhere, please advise,...your message from yesterday below...
..."You can do this with 4 formulas and some formatting. You'll need to use a monospace font type. You'll need to group on your day.
I used "sched.class" to represent the [HIST] etc. above
Formula one formats the data to span your time columns. If you want the columns to be wider change the 10This formula goes in the details band:
{@to - from}
stringvar out;
numbervar spaces:=(({sched.to}-{sched.from})*24)*10 ;
out:="["+{sched.class}+replicatestring(" ",spaces-len({sched.class}))+"]"
You'll need three formulas to display the data.
This one goes in the group header.
{@sched init}
whileprintingrecords;
stringvar sched:=""
This one goes in the details band:
{@sched accum}
whileprintingrecords;
stringvar sched;
sched:=sched+{@to - from}
This one goes in the group footer:
{@sched display}
whileprintingrecords;
stringvar sched
Move the Group Name into the footer and suppress the group header and the details band.
It should look like this - (I eliminated the last "class" for display purposes):
8:00 9:00 10:00 11:00 12:00
Mon [MBA ][SLA ][HIST ]
Tue [SLA ][MBA ][GEN MAN ]
Wed [HIST ][MBA ][GEN MAN ]"