<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in custom dashlet to display ms word document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-custom-dashlet-to-display-ms-word-document/m-p/202008#M155138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The content of a Word file is binary data! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to convert to plain text. You can use the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${cropContent(doc.properties.content, 500)}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This should also work, but i haven't tried it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${doc.properties["cm:content"].getContentAsText(500)}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2009 09:29:04 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2009-04-28T09:29:04Z</dc:date>
    <item>
      <title>Problem in custom dashlet to display ms word document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-custom-dashlet-to-display-ms-word-document/m-p/202007#M155137</link>
      <description>Based on the Alfresco Developer guide by Mr.Jeff, 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:test_doc.docxPK&amp;nbsp;&amp;nbsp; � � ���!�� 腉 ��&amp;nbsp; �� �&amp;nbsp; [Content_Types].xml �&amp;nbsp; (�� �����������������������</description>
      <pubDate>Mon, 27 Apr 2009 11:27:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-custom-dashlet-to-display-ms-word-document/m-p/202007#M155137</guid>
      <dc:creator>javauser007</dc:creator>
      <dc:date>2009-04-27T11:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in custom dashlet to display ms word document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-custom-dashlet-to-display-ms-word-document/m-p/202008#M155138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The content of a Word file is binary data! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to convert to plain text. You can use the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${cropContent(doc.properties.content, 500)}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This should also work, but i haven't tried it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${doc.properties["cm:content"].getContentAsText(500)}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 09:29:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-custom-dashlet-to-display-ms-word-document/m-p/202008#M155138</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2009-04-28T09:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in custom dashlet to display ms word document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-custom-dashlet-to-display-ms-word-document/m-p/202009#M155139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Excellent work…. Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:34:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-custom-dashlet-to-display-ms-word-document/m-p/202009#M155139</guid>
      <dc:creator>javauser007</dc:creator>
      <dc:date>2009-04-28T11:34:09Z</dc:date>
    </item>
  </channel>
</rss>

