Mod to Print Category Colors on Calendar Using CPA

Status
Not open for further replies.
Colors for Appointments - Events - NON ALL DAY EVENTS !

I am editing the Standard Month 01 template.


Trying to print Colors for Single Appointments these are the Smaller 1/2 hour incremental Appointments.




No Colors are showing. They do not carry over from Outlook using versions 2007- 2010


Below i have included the altered code from this Template: Month_StandardMonth01




colors.jpg




I'm getting really good at going back and forthe editing,. so please help me. Pleeeeez.!






colors2.jpg






PHP:
?xml version="1.0" encoding="utf-8"?<!--MonthDayCalendar Sizer-->
     <monthdaycalendar column="1" row="3">
       <monthformat>
         <dockpanel>
           <weekheader format="dddd" fontsize="10pt" height="0.3in" orientation="Top">
           <weekgrid orientation="Fill" unitrestriction="false" numcolumns="7" numrows="Auto">
             
 
 
<spanningalldayarea margin="2" isuniform="false" maxsize="116" minsize="0">
               
 
 
<alldayappointment height="36" margin="2,1,2,0">
                 <bar width="5" orientation="Left" borderthickness="0,0,1,0" visibility="Collapsed">
                   <conditionalformat visibility="Visible" condition="BusyStatus eq 'Free'">
                   <conditionalformat visibility="Visible" condition="BusyStatus eq 'Tentative'">
                   <conditionalformat visibility="Visible" condition="BusyStatus eq 'OutOfOffice'">
                 </conditionalformat>
                 <content fontsize="6pt" orientation="Fill" margin="2,0,2,0" textwrapping="Wrap" separatorfontfamily="WingDings" separator="116" horizontalalignment="Left">
                   <contentelement fontweight="Bold" source="Subject">
                   <contentelement source="Location">
                   <contentelement source="Organizer">
                   <contentelement source="CategorySymbols">
                 </contentelement>
               </contentelement>
             </contentelement>            
           </contentelement>
         </content>
       </conditionalformat>
 
 

       <dayformat>
 
 
<grid height="Auto" columnsetting="*" rowsetting="*">
 
 

 
 
<calendartext column="0" row="0" fontsize="14pt" horizontalalignment="Right" fontweight="Normal" verticalalignment="Bottom" fontfamily="style!FontMajor" text="#[%d]">
             <foreground>
               <solidcolorbrush tint=".7" color="style!mainDark1">
             </solidcolorbrush>
             <conditionalformat condition="DayOfWeek eq 'sun'">
               <foreground>
                 <solidcolorbrush tint=".7" color="style!WeekendColor">
               </solidcolorbrush>
             </foreground>
             <conditionalformat condition="DayOfWeek eq 'sat'">
               <foreground>
                 <solidcolorbrush tint=".7" color="style!WeekendColor">
               </solidcolorbrush>
             </foreground>
           </conditionalformat>
           <dockpanel column="0" row="0">
             <spanningalldayareaplaceholder orientation="Top">
             <compactlist fontsize="6pt" orientation="Fill" typefilter="AppointmentsTasks" padding="1">
           </compactlist>
         </spanningalldayareaplaceholder>
       </dockpanel>
     </conditionalformat></foreground></calendartext></grid></dayformat></conditionalformat></bar></alldayappointment></spanningalldayarea></weekgrid></weekheader></dockpanel></monthformat></monthdaycalendar>
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

I'm looking into it. :)
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

I'm looking into it. :)

Finished looking into it? It's quite surprising that non MVP users are more helpful and knowledable in this forum.
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

That's because more non-mvps customize the CPAO than mvps. :) The XML for the templates is poorly documented and it seems only a few hardly souls attempt to edit it and live to tell about it. ;) It's going to get worse if they don't release a version that works with 2013.

I tried using the method here- CPAO: Using Colors for Categories and Private Items - rtopken - Site Home - TechNet Blogs - it works for all day events but I can't figure out how to use it with timed appoint.

this is the all day method (where the category name really is "Red Category" etc).

PHP:
  <AllDayAppointment Height="16" Margin="2,1,2,0" Style="SingleAppointment" Background="White">     
                 
                   <ConditionalFormat Condition="Categories eq 'Red Category'" Background="Red"/ 
                    <ConditionalFormat Condition="Categories eq 'Blue Category'" Background="Blue"/ 
                    <ConditionalFormat Condition="Categories eq 'Green Category'" Background="Green"/ 
                    <ConditionalFormat Condition="Categories eq 'Orange Category'" Background="Orange"/ 
                    <ConditionalFormat Condition="Categories eq 'Yellow Category'" Background="Yellow"/ 
                    <ConditionalFormat Condition="Sensitivity eq 'Private'" Background="Gray"/
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

PHP:
<compactlist fontsize="6pt" orientation="Fill" typefilter="AppointmentsTasks" padding="1" 
            </compactlist

that code is what handles timed appt. it needs replaced with list code - the conditional formatting does not work in the position I have it here -

PHP:
<List Orientation="Fill" FontSize="8pt" ShowEmptyRow="true" MaxRowWrap="5"
     RowSize="16" TypeFilter="AppointmentsTasks"  Background="White" 
                  <ConditionalFormat Condition="Categories eq 'Red Category'" Background="Red"/ 
                    <ConditionalFormat Condition="Categories eq 'Blue Category'" Background="Blue"/ 
                    <ConditionalFormat Condition="Categories eq 'Green Category'" Background="Green"/ 
                    <ConditionalFormat Condition="Categories eq 'Orange Category'" Background="Orange"/ 
                    <ConditionalFormat Condition="Categories eq 'Yellow Category'" Background="Yellow"/ 
                    <ConditionalFormat Condition="Sensitivity eq 'Private'" Background="Gray"/ 
  <Columns 
      <Column Width="*" ShowDuplicates="True" Left="1" Top="2" Right="1"
             Bottom="3"
          <Sources 
                <Source Name="CategorySymbols"/ 
                <Source Name="StartTime" Format="t" StartSeparator=""/ 
                <Source Name="EndTime" Format="t" StartSeparator="-"/ 
                <Source Name="Subject" StartSeparator=": "/ 
                <Source Name="Location" StartSeparator=" (" EndSeparator=")"/ 
           </Sources 
      </Column 
   </Columns 
</List
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

BTW, if you use the list orientation code i posted, the dots will be colored - I'm trying to color the background. So it's half working, just not like I want it to.
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

BTW, if you use the list orientation code i posted, the dots will be colored - I'm trying to color the background. So it's half working, just not like I want it to.

I just tried your previous code and it doesn't apply background color somehow. Really appreciate if you can figure out the issue. Thank you.
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

Right no background on timed appointments - but the dot should be color coded, if the categories conditional format matches the actual category name.

color-code.png

I repeated the category symbol line twice at the beginning and end.

PHP:
          <Sources 
                <Source Name="CategorySymbols"/ 
<Source Name="CategorySymbols"/ 
                <Source Name="StartTime" Format="t" StartSeparator=""/ 
                <Source Name="EndTime" Format="t" StartSeparator="-"/ 
                <Source Name="Subject" StartSeparator=": "/ 
                <Source Name="Location" StartSeparator=" (" EndSeparator=")"/ 
<Source Name="CategorySymbols"/ 
<Source Name="CategorySymbols"/
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

Right no background on timed appointments - but the dot should be color coded, if the categories conditional format matches the actual category name.

View attachment 625

I repeated the category symbol line twice at the beginning and end.

PHP:

That's correct. Dots appear properly with colors. Why non-All day appointments doesn't get background color?

Thanks!

</sources>
 
Re: Colors for Appointments - Events - NON ALL DAY EVENTS !

Duh! the category filter has nothing to do with the dot colors. :) They do set the all day appt colors though. I really shouldn't work late at night...

- - - Updated - - -

That's correct. Dots appear properly with colors. Why non-All day appointments doesn't get background color?

It's not supported in the List and/or the AppointmentsTasks format apparently.
 
hi, is there a workaround in Outlook printing assistant indeed so to customize the monthly standard template and print category colours there?

If so, could someone summarize the right solution and possibly share the modified xml file here ? Many thanks !!
 
No, not within the templates. Only in the finished product. Sorry.
 
No, no updates at this time. I don't expect any improvements to the CPAO going forward, so its unlikely to change.
 
What an update for this? I'd really like to have the background for all appointments not just all day ones. Thanks.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Jack Poore Outlook gives warning using GO Contracts Sync Mod Using Outlook 4
G Print email attachments when hit subfolder Outlook VBA and Custom Forms 1
U Outlook not responding when trying to print Emails Using Outlook 6
D VBA Macro to Print and Save email to network location Outlook VBA and Custom Forms 1
S Cannot print Contacts Using Outlook 7
G print attachment straight away; working script edit not working Outlook VBA and Custom Forms 0
P Print attachments automatically and move the mail to an existing folder called "Ted" Outlook VBA and Custom Forms 4
S CONTACT FIELD PRINT ORDER Outlook VBA and Custom Forms 1
A VBA Script - Print Date between first email in Category X and last email in Category Y Outlook VBA and Custom Forms 3
B Outlook 2016 Outlook crashes when trying to print certain emails Using Outlook 5
M Batch print without appended trail of repeated e Using Outlook 2
Witzker print-list-of-outlook-folders with sort posibility Outlook VBA and Custom Forms 7
M Custom Calendar Print Suggestions? Using Outlook 0
M Print email and, attachments sent in hyperlinks in the email Outlook VBA and Custom Forms 2
D Print attachments automatically and moves the mail to a new folder Outlook VBA and Custom Forms 9
A Day view - print appointment details Using Outlook 1
I print calendar without subject and details Using Outlook 1
D Print Attachments only in selected emails using a macro Outlook VBA and Custom Forms 3
oliv- property "is printed" or catching print events Outlook VBA and Custom Forms 2
I Print Automatically Attachments Outlook VBA and Custom Forms 3
Diane Poremsky Print a list of your Outlook folders Using Outlook 0
Diane Poremsky Combine and Print Multiple Outlook Calendars Using Outlook 0
B Print list of previously sent recipients Using Outlook 1
R Print email message and attachment in order Outlook VBA and Custom Forms 2
L Outlook 2002: HTML Emails Will Not Print: Please Help Using Outlook 0
A Print first page of a new email Outlook VBA and Custom Forms 7
Diane Poremsky Print Monthly or Work Week Calendars Using Outlook 0
Diane Poremsky No drop down calendars in Outlook 2010 Print Options Using Outlook 0
Diane Poremsky Print Monthly or Work Week Calendars Using Outlook 0
S Macro to print & move selected emails? Using Outlook 3
J Auto print PDF attachments as they arrive with certain words in subject Outlook VBA and Custom Forms 3
H Problems With Outlook 2013 VBA To Send and Print an email Outlook VBA and Custom Forms 1
D Outlook 2013 Categories won't print In color Using Outlook 2
G Calendar monthly view - Print just 3 weeks Using Outlook 5
R Can't modify Outlook view font with IE anymore (even though IE still affects print font) Using Outlook 5
M Print Attachments from another mailbox (not default) Outlook VBA and Custom Forms 2
E Outlook VBA to print attached Pdf to a fax printer and assign fax number Using Outlook 0
L Outlook 2010 Quick Print Attachment, nothing happend Using Outlook 0
C automatically print attachments Using Outlook 4
J Automatically Print PDF When They Are Received Using Outlook 4
M button to send and print emails Using Outlook 26
S How to print ONLY first line of appointments in month view? Using Outlook 1
M print free/busy schedule of an user Using Outlook 2
O For Outlook 2007 - VBA to print attachments Using Outlook 1
W Cannot print Outlook 2007 emails Using Outlook 2
R problem with incomming e-mail I am unable to print full e-mail letter Using Outlook 1
M Custom print contacts Using Outlook 2
E Can't print from Outlook on wifi network Using Outlook 0
E can't print some retail discount coupons Using Outlook 7
J calendar print setup in outlook 2010 Using Outlook 1

Similar threads

Back
Top