Mod to Print Category Colors on Calendar Using CPA

Status
Not open for further replies.

jesned71

Member
My apologies if this is on here somewhere already.




For years, I've printed a family calendar and posted it on our refrigerator for the current month. I've used Outlook 2003 to do this. Each family member had a color that surround each listing on the calendar.




I upgrade to Outlook 2007 and WHAM! All these problems. So I do some research and find the Calendar Printing Assistant. Then I find the mods at http://www.slipstick.com/outlook/modify-calendar-printing-assistant-templates/ which are GREAT! Thank you for those.




Now to my only remaining problem. My wife would like the category colors back. There appears to be small colored dots in front of listed appointments, but they are all the same color. I'm hoping there is a way to colorize the entire appointment based on the category colors from Outlook 2007. The all day appointments are colorized, so I'm hoping there is a way to do that for the others, with each person having their own color based on the Outlook 2007 category color.




Thanks for any help on a mod that would allow this to happen.




Jeremy
 
The dots indicate the calendar the appointment was on - if you'd use separate calendars instead of categories. Not that i recommend it, its usually better to use one calendar and categories.

I haven't checked the templates for categories. I'll take a look at it over the weekend.
 
I've performed a limited test with this and it seems as if you can just replace "[CalendarColor]" with "[CategoryColor]" as long as you're using a template that shows colors per calendar.
 
Hi,
I know you ran limited test on the "[Calendar Color]" option. Could you please tell me where to look. I checked XML files but could not find the entries.
 
Hey! I signed up just to share this. Thanks for all the great info so far.

I've figured out how to set calendar print assistant to print category colours.

In the place where you would type the background colour, type this:

Background="#[CategoryColor]"

You can add it into this line:

<div style='font-family:monospace;font-size:12px;color:#000080;background:transparent'><Appointment Background="#[CategoryColor]" Style="SingleAppointment">
</div
<appointment background="#[CategoryColor]" style="SingleAppointment"></appointment>
 
Hi,

I know you ran limited test on the "[Calendar Color]" option. Could you please tell me where to look. I checked XML files but could not find the entries.

Hi,

I'll go through the steps i went through to get category colors instead of calendar colors. I used the template "Standard week 1" for my test. It shows entries with "calendar color" before modification.

  1. Save a template as a new file (I used the "name.calx").
  2. Rename the file from name.calx to name.zip (it's actually a zipped archive)
  3. Open the zip archive and extract the file "name.zip\Cal\Styles\CalendarDesigns\Standard\CalendarDesign.xml"
  4. Perform "search and replace" with "CalendarColor" into "CategoryColor".
  5. Save the file and put it back into the zip archive.
  6. Rename the archive from name.zip to name.calx.

Regards

/Dan
 
Hi,

I'll go through the steps i went through to get category colors instead of calendar colors. I used the template "Standard week 1" for my test. It shows entries with "calendar color" before modification.

  1. Save a template as a new file (I used the "name.calx").
  2. Rename the file from name.calx to name.zip (it's actually a zipped archive)
  3. Open the zip archive and extract the file "name.zip\Cal\Styles\CalendarDesigns\Standard\CalendarDesign.xml"
  4. Perform "search and replace" with "CalendarColor" into "CategoryColor".
  5. Save the file and put it back into the zip archive.
  6. Rename the archive from name.zip to name.calx.

Regards

/Dan

Thank You so much for your time. This was very helpful.

Would you know know to do the same in Month view.
 
Hey! I signed up just to share this. Thanks for all the great info so far.

I've figured out how to set calendar print assistant to print category colours.

In the place where you would type the background colour, type this:

Background="#[CategoryColor]"

You can add it into this line:

<appointment background="#[CategoryColor]" style="SingleAppointment"
</appointment>


<appointment background="#[CategoryColor]" style="SingleAppointment"></appointment>

Hi, Where did you find this line? <appointment background="#[CategoryColor]" style="SingleAppointment"> I suspect it may help me display background in Month view.</appointment>
 
You can add it in here. Note you are not replacing an entry, you are adding it in.

<div style='font-family:monospace;font-size:12px;color:#000080;background:transparent'> <Appointment Background="#[CategoryColor]" Style="SingleAppointment">
<Bar Orientation="Left" Visibility="Collapsed" Width="5" BorderThickness="0,0,1,0">
<ConditionalFormat Condition="BusyStatus eq 'Free'" Visibility="Visible" Style="SingleAppointmentBarFree"/>
<ConditionalFormat Condition="BusyStatus eq 'Tentative'" Visibility="Visible" Style="SingleAppointmentBarTentative"/>
<ConditionalFormat Condition="BusyStatus eq 'OutOfOffice'" Visibility="Visible" Style="SingleAppointmentBarOOF"/>
</Bar>
<Content Orientation="Fill" Margin="2,0,2,0" Separator="116" FontSize="8pt" SeparatorFontFamily="Wingdings" TextWrapping="WrapWithOverflow">
<ContentElement Source="OddTimes"/>
<ContentElement Source="Subject" FontWeight="Bold"/>
<ContentElement Source="Categories"/>
</Content>
</Appointment>
</TimeSlot></div>

 
You can add it in here. Note you are not replacing an entry, you are adding it in.

<Appointment Background="#[CategoryColor]" Style="SingleAppointment"
<Bar Orientation="Left" Visibility="Collapsed" Width="5" BorderThickness="0,0,1,0"
<ConditionalFormat Condition="BusyStatus eq 'Free'" Visibility="Visible" Style="SingleAppointmentBarFree"/
<ConditionalFormat Condition="BusyStatus eq 'Tentative'" Visibility="Visible" Style="SingleAppointmentBarTentative"/
<ConditionalFormat Condition="BusyStatus eq 'OutOfOffice'" Visibility="Visible" Style="SingleAppointmentBarOOF"/
</Bar
<Content Orientation="Fill" Margin="2,0,2,0" Separator="116" FontSize="8pt" SeparatorFontFamily="Wingdings" TextWrapping="WrapWithOverflow"
<ContentElement Source="OddTimes"/
<ContentElement Source="Subject" FontWeight="Bold"/
<ContentElement Source="Categories"/
</Content
</Appointment
</TimeSlot



Sorry To bother you. I just can't figure out exactly where to put this line of code I also notice that the closing has </TimeSlot> but open <TimeSlot> is this for a week view or Month view? I'm trying to incorporate this in a month view. Thanks in advance for the help.
 
Sure, no worries. So what you are doing is adding in

Background="#[CategoryColor]"

to wherever background colour of appointments can be changed in your template to some flat colour. It may take some experimenting.

The following link has a very detailed example of this, but his method is much more complicated and more easily broken:

https://blogs.technet.com/b/rtopken...-colors-for-categories-and-private-items.aspx

If you see in his though, on the fourth line of code, it says:

Appointment Style="SingleAppointment" Background="White"

So he added in Background="White" to the Appointment line. This will override the appointment colours and make them all white. Instead of doing that, if you put Background="#[CategoryColor]" then it will be category colour instead!

I hope this helps. Let me know.
 
Oh I should add that sometimes the changes don't appear until you restart Calendar Printing Assistant.
 
Hi,

I'll go through the steps i went through to get category colors instead of calendar colors. I used the template "Standard week 1" for my test. It shows entries with "calendar color" before modification.
  1. Save a template as a new file (I used the "name.calx").
  2. Rename the file from name.calx to name.zip (it's actually a zipped archive)
  3. Open the zip archive and extract the file "name.zip\Cal\Styles\CalendarDesigns\Standard\CalendarDesign.xml"
  4. Perform "search and replace" with "CalendarColor" into "CategoryColor".
  5. Save the file and put it back into the zip archive.
  6. Rename the archive from name.zip to name.calx.
Regards

/Dan

So you are saving a calendar in the CPA and editing the file before printing, not editing the template (catx) file ? I'd like to change it in the template so i can just print and be done with it.
 
Using the standard month 01 template (catx) and replacing the free busy lines with the categories, i have it working on all day events.

<ALLDAYAPPOINTMENT Margin="2,1,2,0" Height="16">(had to remove the < > brackets so it wouldn't render here)

Bar width controls the width of the color.

<BAR BorderThickness="0,0,1,0" Width="25" Orientation="Left"
AllDayAppointment Height="16" Margin="2,1,2,0" Style="SingleAppointment"

Bar Orientation="Left" Width="25" BorderThickness="0,0,1,0"

ConditionalFormat Condition="Categories eq 'AddUtility'" Visibility="Visible" Background="Red"/

ConditionalFormat Condition="Categories eq 'Needs Done'" Visibility="Visible" Background="Blue"/

/bar<CONDITIONALFORMAT Background="Blue" Visibility="Visible" Condition="Categories eq 'Needs Done'" /
</BAR><CONDITIONALFORMAT Background="Blue" Visibility="Visible" Condition="Categories eq 'Needs Done'" /
</BAR> categories.png
 
So I spent quite a bit of time with your content.xml

I can't figure out how to change the colour of the font. I wish they would document their XML library.

But here is a sample of one I got to work.
 

Attachments

Hi all. Thought I'd jump on the back of this thread. I've figured out that I can put a "Background="#FFFFFF"" on my AllDayAppointment to force the background to be white, independent of the calendar printing assistant template being used. However the border color is still whatever is set within the client. I've tried no end of guesses at XML tags to force the border of the multi-day entries to change to Black and all I keep getting is invalid attribute errors. Does anyone know how to change the border colors? Thanks! Brett.
 
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