Creating a Calendar
Hi...
I'm a little confused about how to create a year calendar using FR3?!?!
The layout should be like this (for one month):
The months 'February' to 'December' should be layouted exact the same except, the first day of month differs.
First, I thought about using cross-tabs, but I didn't foudn any possibilities to change it's position and how to include more than one instance.
Did I need to completly draw the report by myself??
Please help...
I'm a little confused about how to create a year calendar using FR3?!?!
The layout should be like this (for one month):
January
-----------
MO | Â Â Â Â Â Â | 03 GRP3 Â | 10 Â Â Â Â | Â Â Â Â Â Â | Â Â Â Â Â Â |
TU | Â Â Â Â Â Â | 04 GRP4 Â | 11 Â Â Â Â | Â Â Â Â Â Â | Â Â Â Â Â Â |
WE | Â Â Â Â Â Â | 05 GRP1 Â | Â Â Â Â Â Â | Â Â Â Â Â Â | Â Â Â Â Â Â |
TH | Â Â Â Â Â Â | 06 GRP2 Â | Â Â Â Â Â Â | Â Â Â Â Â Â | Â Â Â Â Â Â |
FR | Â Â Â Â Â Â | 07 GRP3 Â | Â Â Â Â Â Â | Â Â Â Â Â Â | Â Â Â Â Â Â |
SA | 01 Â GRP1 Â | 08 Â Â Â | Â Â Â Â Â Â | Â Â Â Â Â Â | Â Â Â Â Â Â |
SU | 02  GRP2  | 09    |       |       | 31 GRPx   |
The months 'February' to 'December' should be layouted exact the same except, the first day of month differs.
First, I thought about using cross-tabs, but I didn't foudn any possibilities to change it's position and how to include more than one instance.
Did I need to completly draw the report by myself??
Please help...
Comments
Nearly all 365 cells should contain custom data accessable via the core application.
This is the event from the calendar demo:
procedure Memo1OnBeforePrint(Sender: TfrxComponent);
var
CellNo, RealDay: Integer;
begin
CellNo := DayLine + (<Line> - 1) * 7;
RealDay := CellNo - StartDay + 1;
if (CellNo < StartDay) or (RealDay > LastDay) then
Day := ''
else
begin
Day := Format('%.2d', [RealDay]);
end;
end;
How can I include custom data to this event?? I thought about using variables with unique generated names:
DayVar := Format('%.2d%.2d', [0 + Month, 0 + RealDay]);
...and include this variable to:
Day := Format('%.2d %s', [RealDay, <DayVar>]);
but this doesn't work. Any other idea????
But the try/except doesn't seems to work - I don't get an error while building the report but if finished, I get an exception overview with all unknown variables!
How to disable this summary?