<?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: Create document based on word template through alfresco javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281100#M234230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am fairly certain that the processDocument call does not work the way you would like it to work. It is intended to process a freemarker template in the context of a node. It doesn't have anything to do with Microsoft Word document templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are ways to do what you are trying to do (inject metadata values into a Word document), but I don't think any of them are out-of-the-box unless there are some very new features I haven't played with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 16:24:56 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2014-04-01T16:24:56Z</dc:date>
    <item>
      <title>Create document based on word template through alfresco javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281098#M234228</link>
      <description>I am trying to create word document from word template which I have uploaded in to repository through alfresco javascript.Issue is that arguments which I am passing during processTemplate is not replaced with place holders.Script which I am using is as follow.var fileNode=companyhome.childByNamePath</description>
      <pubDate>Tue, 01 Apr 2014 12:52:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281098#M234228</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-04-01T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create document based on word template through alfresco javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281099#M234229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please remember two things:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First make sure your "template1.doc" is just text format, you can create a template1.txt and rename it to template1.doc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Second ，argument you passed to model should be refered like&amp;nbsp; this&amp;nbsp; ${args["docname"]} &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 16:24:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281099#M234229</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-01T16:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create document based on word template through alfresco javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281100#M234230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am fairly certain that the processDocument call does not work the way you would like it to work. It is intended to process a freemarker template in the context of a node. It doesn't have anything to do with Microsoft Word document templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are ways to do what you are trying to do (inject metadata values into a Word document), but I don't think any of them are out-of-the-box unless there are some very new features I haven't played with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 16:24:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281100#M234230</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-04-01T16:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create document based on word template through alfresco javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281101#M234231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We can create a&amp;nbsp; text format (for example template1.txt) and rename it do template1.doc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Although it is a fake doc,freemarker can deal with it,it will work..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 16:31:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281101#M234231</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-01T16:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create document based on word template through alfresco javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281102#M234232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, Jeff that what exactly I am trying to do "inject meta-data value to word document while creating new copy from template". I was bit lost in other task and now I am back to this task. Trying to figure out how I could do this.Let me know if you have suggestion for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 05:46:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281102#M234232</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-04-09T05:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create document based on word template through alfresco javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281103#M234233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might look at&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://addons.alfresco.com/addons/metadata-writer" rel="nofollow noopener noreferrer"&gt;http://addons.alfresco.com/addons/metadata-writer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have never used this, but I came across it when I was looking to do something similar to you (I ended up using OpenOffice + Freemarker which works well using JODConverter).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It says it will write properties, but you can embed properties in your word document by reference so far as I recall. Also, if you can write properties you can probably write variables with a modest change to the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do try it, please report back. I would be really interested to know if it works as I suspect others would.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 07:44:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-document-based-on-word-template-through-alfresco/m-p/281103#M234233</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-04-09T07:44:00Z</dc:date>
    </item>
  </channel>
</rss>

