|
Sample Templates
CLIPFORM comes with several sample templates to help you get started, and to
show you some of the uses of CLIPFORM. You can launch any of these
templates simply by double-clicking on the template file in Windows
Explorer. Or you can right-click, choose Edit, and the template
will be opened in Notepad so you can customize it. Below is the full text
of each of the included templates along with an explanation of how each one
works. CLIPFORM directives and Outlook field values and formatting codes
are highlighted.
APPOINTMENTS.CFT
This template extracts all Outlook appointment items in the default Calendar
folder to create an HTML mail message. The template includes appointments
occurring starting today and for the next 30 days, sorted by start date.
The HTML code preceding ENDHEADER appears once in the output, and is the
HTML code for the message's header. Between ENDHEADER and BEGINFOOTER
is the code for a table including the starting and ending times, appointment
subject and location.
[Source=outlook:Calendar]
[Output=secretary@mydomain.com]
[Filter=Start>=Today]
[Filter=Start<=Today+30]
[Sort=Start]
<html>
<body>
<p style="margin-bottom: 0"><b><font color="#CC0000" size="5">SCHEDULE</font></b></p>
<hr noshade size="4" color="#CC0000">
[ENDHEADER]
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="40%" valign="top">[Start|ddd.
m/d/yy h:mm
ampm]-[End|h:mm ampm]</td>
</center>
<td width="60%" valign="top" align="center">
<p align="left">[Subject] <i>[Location]</i></td>
</tr>
</table>
[BEGINFOOTER]
</div>
</body>
</html>
DIRECTORY.CFT
This simple template creates a directory of all Outlook contact items and
saves it as a text file.
[Source=outlook:Contacts]
[Output=c:\phone.txt]
[Sort=FileAs]
PHONE DIRECTORY
[ENDHEADER]
[FullName]
[JobTitle]
[CompanyName]
[BusinessAddress]
[Tel.: |BusinessTelephoneNumber]
[Fax: |BusinessFax]
PHONELOG.CFT
This template creates a phone log, and saves it as a text file. The
phone log entries are extracted from the Outlook Journal; only entries within
the past 7 days are included. The Command= directive launches the
text file when CLIPFORM is finished.
[Source=outlook:Journal]
[Output=c:\phonelog.txt]
[Command=c:\phonelog.txt]
[Filter=Type=Phone Call]
[Filter=Start>=Today-7]
[Sort=Start]
PHONE LOG
[ENDHEADER]
[Start|mm/dd/yy
h:mm ampm] [ContactNames] - [Subject]
[Body]
----------
TASK LIST.CFT
This template makes a list of tasks due within the next seven days and
creates an HTML mail message.
[Source=outlook:Tasks]
[Output=manager@mydomain.com]
[Filter=Complete=False]
[Filter=DueDate<=Today+7]
<html>
<body>
<p style="margin-bottom: 0"><font size="5" color="#0000FF"><b>TASK LIST</b></font></p>
<hr>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="15%">
<p align="center"><b>Due Date</b></p>
</td>
<td width="85%"><b>Item</b></td>
</tr>
</table>
</center>
</div>
[ENDHEADER]
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="15%">
<p align="center">[DueDate|m/d/yy]</p>
</td>
<td width="85%">[Subject]</td>
</tr>
</table>
[BEGINFOOTER]
</body>
</html>
WEBPAGE.CFT
This template takes the Outlook contacts folder and creates a formatted web
page. The Command= directive opens the finished web page in your
Internet browser when CLIPFORM is completed.
[Source=outlook:Contacts]
[Output=c:\contacts.htm]
[Command=c:\contacts.htm]
<html>
<head>
<title>Phone Directory</title>
</head>
<body>
<p><img border="0" src="file:///C:/Documents/Web/Ivitar/clipform/clipicon.gif" align="left" width="100" height="90"><b><font size="6" color="#FF0000">PHONE<br>
DIRECTORY</font></b></p>
<hr>
[ENDHEADER]
<table border="0" cellpadding="0" cellspacing="12" width="100%">
<tr>
<td width="50%" valign="top">
<p style="margin-top: 0; margin-bottom: 0"><b>[FileAs]</b></p>
<p style="margin-top: 0; margin-bottom: 0">[JobTitle]</p>
<p style="margin-top: 0; margin-bottom: 0">[CompanyName]</p>
<p style="margin-top: 0; margin-bottom: 0">Telephone: [BusinessTelephoneNumber]</p>
<td width="50%" valign="top">
<p style="margin-top: 0; margin-bottom: 0">[BusinessAddress]</p>
</tr>
</table>
</center>
</div>
[BEGINFOOTER]
</body>
</html>
|