|
Making
Web Pages
One of CLIPFORM's
greatest features is the ability to include literal text along with Outlook
field data. This literal text can be ANY text – including HTML
code! Thus, CLIPFORM makes it a breeze to extract Outlook data directly to
a web page. (If you specify an e-mail recipient for the output, and you
have Outlook 98 or later installed, CLIPFORM will even create a formatted HTML
mail message!)
Here are the steps to
create a CLIPFORM template that will make a web page (or HTML mail message)
using data from Microsoft Outlook:
-
Create and format a
sample web page using your favorite HTML editor (e.g. Microsoft Front
Page). Include sample data for one item as a placeholder.
-
Go to the HTML view
and copy the resulting HTML code to the Windows CLIPBOARD.
-
Create a new
CLIPFORM template (On the Windows Start Menu, choose Programs | Ivitar
Software | New Template). The template will be created and opened
in Notepad.
-
Paste the HTML code
into the template.
-
Substitute Outlook
field names for the sample data. For example, if you're creating a
template to extract contacts, you could change Joe Doakes (sample
data) to [FullName] (Outlook field name). In the case of
Outlook fields which include dates/times, boolean (true/false) values,
numbers, or special fields (e.g. gender, importance, status, etc.), be sure
to specify how you'd like that data to be formatted.
-
Insert the [ENDHEADER]
and [BEGINFOOTER] directives
to separate the HTML code that is to be duplicated for each Outlook item,
from the HTML header and footer code. (See example below.)
-
Specify the Source
Outlook folder, the Output HTML file name
(or e-mail recipient), and any sorting
or filtering criteria.
Here's an example of a
CLIPFORM template which extracts
Outlook data and outputs it as an HTML page. (To make this example
clearer, CLIPFORM directives and Outlook fields are highlighted.)
[Source=outlook://Personal
Folders/Contacts]
[Output=c:\My
Documents\My Webs\phonebook.htm]
[Sort=FileAs]
<html>
<head>
<title>Phone
Directory</title>
</head>
<body>
<p
align="left"><b><img border="0" src="file:phone.gif"
align="left" width="48" height="48" hspace="12"><font
size="6" color="#0000FF">PHONE
DIRECTORY</font></b></p>
<hr>
<div
align="center">
<center>[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">[Department]</p>
<p
style="margin-top: 0; margin-bottom: 0">[CompanyName]</td>
<td
width="50%" valign="top">
<p
style="margin-top: 0; margin-bottom: 0">[BusinessAddressStreet]</p>
<p
style="margin-top: 0; margin-bottom: 0">[BusinessAddressCity],
[BusinessAddressState] [BusinessAddressPostalCode]</p>
<p
style="margin-top: 0; margin-bottom: 0">Telephone: [BusinessTelephoneNumber]</p>
<p
style="margin-top: 0; margin-bottom: 0">Facsimile: [BusinessFaxNumber]</td>
</tr>
</table>
</center>
</div>
[BEGINFOOTER]
</body>
</html>
|