AnsweredAssumed Answered

custom dashlet displaying MS word press release improperly

Question asked by aatamer on Dec 19, 2007
Latest reply on Apr 27, 2009 by javauser007
Based on the Shariff ebook, I created a custom dashlet to display press releases.  I stuck a couple of MS Word documents into the space but the text displayed in the press release area is:

CF999-00482.doc
�� ࡱ �����������������>� ��� � …

The title is indeed CF999-00482, but all the question marks are not part of the document.

The dashlet that is displaying the document is below, customized a little from the ebook

<table>
<#assign l_space = companyhome.childByNamePath["Corporate/News and Announcements"]>
<#list l_space.children as doc>
<#if doc.isDocument>
<tr>
<td>
<a class="title" href="/alfresco/${doc.url}">${doc.properties.title}</a></td>
</tr>
<tr>
<td style="padding-left:8px">
<#if (doc.content?length > 500)>
<small>${doc.content[0..30]}…</small>
<#else>
<small>${doc.content}</small>
</#if>
</td>
</tr>
<tr><td> <HR> </td></tr>
</#if>
</#list>
</table>

What could it be? Thanks.

Outcomes