Page 1 of 1

Tip: Include End Times on Printed Month

PostPosted: Mon Sep 28, 2009 6:48 am
by John Sindelar
SeedCode Calendar Pro includes a very nice printed version of the month view where each day "slides" to show all the events for that day.

Adding fields to this display is a little odd since the display is printed using a single calc field.

So if you wanted to show event end times on this layout here is what you'd do.

Find the following text in the calc "ApptTitleDisplayCalc" in the Appointments table:

Code: Select all
// ##########  Show appointment times on some layouts.

If ( PatternCount ( Get ( LayoutName ) ; "Print" ) or  PatternCount ( Get ( LayoutName ) ; "Daily" ) or  PatternCount ( Get ( LayoutName ) ; "Year" ) or PatternCount ( Get ( LayoutTableName ) ; "Resource" )  ;
If ( not IsEmpty ( ApptTimeStart ) ; SeedCode_TimeToText ( ApptTimeStart ; " am" ; " pm" ) & "    " ; "" ) &

If ( not IsEmpty ( ApptUser_kf ) ; Substitute ( ApptUser_kf ; "¶" ; ", " ) & "    " ; "" )
) & // End if Print

// ##########  Continue with appointment details


And replace that with this:

Code: Select all
// ##########  Show appointment times on some layouts.

If ( PatternCount ( Get ( LayoutName ) ; "Print" ) or  PatternCount ( Get ( LayoutName ) ; "Daily" ) or  PatternCount ( Get ( LayoutName ) ; "Year" ) or PatternCount ( Get ( LayoutTableName ) ; "Resource" )  ;
If ( not IsEmpty ( ApptTimeStart ) ; SeedCode_TimeToText ( ApptTimeStart ; " am" ; " pm" ) & If ( not IsEmpty ( ApptTimeEnd ) ; "  ~  " ; "    " ) ; "" ) &

If ( PatternCount ( Get ( LayoutName ) ; "Print" ) and not IsEmpty ( ApptTimeEnd ) ; SeedCode_TimeToText ( ApptTimeEnd ; " am" ; " pm" ) & "    " ; "" ) &

If ( not IsEmpty ( ApptUser_kf ) ; Substitute ( ApptUser_kf ; "¶" ; ", " ) & "    " ; "" )
) & // End if Print

// ##########  Continue with appointment details


That's it!