CPAO: Entire Notes for Monthly Template in PDF format

After making all these posts on editing CPAO – I can see that it will be nice to have them all together in one paper that can be used for reference. I have uploaded a PDF that has all the CPAO template editing posts in them. Hopefully this will be a help for anyone who needs…

6

CPAO: Listing of the Standard Month Legal Template

  Here is the entire listing of the code from the Standard Month Legal template I created. First – here is the contents of the Metadata.xml file:   <Metadata xmlns=”http://schemas.microsoft.com/2005/xcal” Version=”1.0.0″> <Name>Standard Month Legal</Name> <TimeUnit>Month</TimeUnit> <PageSizeSelectionIndex>Legal</PageSizeSelectionIndex> <PageHeight>14in</PageHeight> <PageWidth>8.5in</PageWidth> <PageOrientationSelectionIndex>Portrait</PageOrientationSelectionIndex> <PageRow>1</PageRow> <PageColumn>1</PageColumn> <Thumbnail>DefaultPreview.gif</Thumbnail> <Tasks>true</Tasks> <Appointments>true</Appointments> <SideBySide>false</SideBySide> <PageCount>1</PageCount>                 <TemplateId>135</TemplateId> <CompanyId>1</CompanyId> </Metadata>   And then here is the…

3

CPAO: Editing the Metadata.xml File

  So far everything has been edited in the Content.xml file (located in the \Cal directory after renaming/unzipping the CATX file – see the section on Opening and Saving Template Files) . That is the main file for doing the formatting of a particular template.   The Metadata.xml is good for doing a couple main…

1

CPAO: Editing the Footer of a Template

  Now on to the formatting the footer area of the page. Here is a screenshot and the code:           <!– Standard Footer –>       <Grid Row=”4″ Column=”1″ VerticalAlignment=”Top” Margin=”0,4,0,0″             RowSetting=”Auto” ColumnSetting=”*,*,*”>         <CalendarText Row=”0″ Column=”0″ Date=”#[Now]”                       Text=”#[@TemplateDocInfo_PrintTime]”                       HorizontalAlignment=”Left” FontSize=”7pt”/>         <CalendarText Row=”0″ Column=”1″ Text=”#[@TemplateDocInfo_Page]”                       HorizontalAlignment=”Center” FontSize=”7pt”/>         <CalendarText…

0

CPAO: Editing the Calendar Grid (Part 2)

  This section moves into the Day Format area:           <DayFormat>           <Grid RowSetting=”*” ColumnSetting=”*” Height=”Auto”                 Style=”LevelLeafParent”>             <CalendarText Row=”0″ Column=”0″ FontSize=”46pt” FontWeight=”Bold”                           Text=”#[%d]” FontFamily=”style!FontMajor”>               <Foreground>                 <SolidColorBrush Color=”style!mainDark1″ Tint=”.7″/>               </Foreground>               <ConditionalFormat Condition=”DayOfWeek eq ‘sun'”>                 <Foreground>                   <SolidColorBrush Color=”style!WeekendColor” Tint=”.7″/>                 </Foreground>               </ConditionalFormat>               <ConditionalFormat Condition=”DayOfWeek eq…

3

CPAO: Editing the Calendar Grid (Part 1)

    And now to editing what is seen in the calendar. I am still using the “Standard Month 01 Letter” template as the base for showing some options here. So here is the code that describes the layout of the appointments and the grid:         <!–MonthDayCalendar Sizer–>       <MonthDayCalendar Row=”3″ Column=”1″>         <MonthFormat>…

3

CPAO: Editing the Month Thumbnails in the Template Header

  Okay – on to the month thumbnails. Here is the screenshot and  code for those again:       <Display>     <Page RowSetting=”0.25in,Auto,0.2in,*,0.4in” ColumnSetting=”0.25in,*,0.25in”           Style=”StandardText”>       <!– Background –>       <Rectangle Row=”0″ Column=”0″ RowSpan=”5″ ColumnSpan=”3″                  Style=”PageBackground”/>       <!–Week Header–>       <Grid Row=”1″ Column=”1″ RowSetting=”Auto” ColumnSetting=”*,1.3in,1.3in”             Style=”Header” Padding=”.08in”>         <!–Month Title–>        …

0

CPAO: Editing the Template Header

  The Header of the template is versatile. It can have additional month thumbnails, it has the month name or the weeks or the days in the weekly and daily templates, etc.   In the example I have been using (Month_StandardMonth01.catx) the Header looks like this:     This contains the month name and year…

0

CPAO: Template Page Editing

  Now on to some actual editing. We will work with the whole page here. Here is the original template (Month_StandardMonth01.catx):     On this page, there is a Header with stuff in it, the Days/Weeks in the month in a grid with appointments in it, and a Footer with some data in it.  …

0

CPAO: Commenting in the Templates

  First – I would like to cover how to do comments when editing the CPAO templates. At the top of the Content.xml file there are some comments:   <!– Copyright (c) 2007, Microsoft Corporation. All rights reserved. –> <!– Standard Month 01 –>   Comments start with:   <!– Comments end with:   –>   Comments are…

0