Tip: Include End Times on Printed Month

Support for our integrated Contact Manager, Calendar, and Project Tracker.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Sep 28, 2009 6:48 am
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!
John Sindelar
SeedCode

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 4 guests

(855) SEEDCODE
[email protected]
Follow us: