<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using ColdFusion to Generate a Custom Word Document</title>
	<atom:link href="http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 15:42:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Joe</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1534</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 29 Jun 2010 16:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1534</guid>
		<description>Just a note for Michael (above).  You can also simply write html to a file with a .doc extension and Word will  open it and it will have the html formatting.  And if you have Word on your server, you can issue a read of the file and then issue a &quot;save as&quot; (via COM -- you&#039;ll have to good that) with an rtf extension and it will save it.  (It creates an instance of Word on the server though, so you wouldn&#039;t want this to be high volume.)  
Also, ActivePDF will convert from html to PDF or Word to PDF. http://www.activepdf.com/products/serverproducts/docconverter/overview.cfm</description>
		<content:encoded><![CDATA[<p>Just a note for Michael (above).  You can also simply write html to a file with a .doc extension and Word will  open it and it will have the html formatting.  And if you have Word on your server, you can issue a read of the file and then issue a &quot;save as&quot; (via COM &#8212; you&#039;ll have to good that) with an rtf extension and it will save it.  (It creates an instance of Word on the server though, so you wouldn&#039;t want this to be high volume.)<br />
Also, ActivePDF will convert from html to PDF or Word to PDF. <a href="http://www.activepdf.com/products/serverproducts/docconverter/overview.cfm" rel="nofollow">http://www.activepdf.com/products/serverproducts/docconverter/overview.cfm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1521</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Mon, 28 Jun 2010 21:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1521</guid>
		<description>@Joe
Thanks for the info. It is a kludge at best no matter how it is done. But, it can be done, like you said, with limitations.</description>
		<content:encoded><![CDATA[<p>@Joe<br />
Thanks for the info. It is a kludge at best no matter how it is done. But, it can be done, like you said, with limitations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1511</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Mon, 28 Jun 2010 19:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1511</guid>
		<description>I bet the person wanting to know how to get variables on page 2 or beyond may be using the same variable on those pages that they used on page 1.  Therefore, they simply need the &quot;All&quot; parameter at the end of the replace() function.  
However, I will tell you that there may be some sort of limitation on the number of replacements in a single document because I&#039;m fine up to maybe 100 statements or so and then it just stops replacing.  It could be a memory limitation.</description>
		<content:encoded><![CDATA[<p>I bet the person wanting to know how to get variables on page 2 or beyond may be using the same variable on those pages that they used on page 1.  Therefore, they simply need the &quot;All&quot; parameter at the end of the replace() function.<br />
However, I will tell you that there may be some sort of limitation on the number of replacements in a single document because I&#039;m fine up to maybe 100 statements or so and then it just stops replacing.  It could be a memory limitation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1006</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Fri, 05 Mar 2010 19:25:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1006</guid>
		<description>@Don

&quot;Leave the porn! It makes your site more popular. lol&quot;

That actually crossed my mind...</description>
		<content:encoded><![CDATA[<p>@Don</p>
<p>&quot;Leave the porn! It makes your site more popular. lol&quot;</p>
<p>That actually crossed my mind&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1005</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Fri, 05 Mar 2010 19:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1005</guid>
		<description>What I really need I think is to be able to open the docs in WordPad. Can&#039;t find any documentation on how to instantiate and use a WordPad object tho.

Leave the porn! It makes your site more popular. lol

And I keep guessing wrong anyway.</description>
		<content:encoded><![CDATA[<p>What I really need I think is to be able to open the docs in WordPad. Can&#039;t find any documentation on how to instantiate and use a WordPad object tho.</p>
<p>Leave the porn! It makes your site more popular. lol</p>
<p>And I keep guessing wrong anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1004</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Fri, 05 Mar 2010 19:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1004</guid>
		<description>@Gary

You may be running into a caching issue. I was able to put variables in on the second page without a problem.</description>
		<content:encoded><![CDATA[<p>@Gary</p>
<p>You may be running into a caching issue. I was able to put variables in on the second page without a problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1003</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Fri, 05 Mar 2010 18:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1003</guid>
		<description>Convert an RTF or Word doc to PDF with CF? Not that I know of. Neither cfdocument nor cfpdf will do that. This whole method is clunky at best and may not work as Word and CF evolve. Actually, I was kinda surprised it can still be done at all.

BTW, I LOVE the anti-spam because I no longer spend an hour a day deleting links to porn.</description>
		<content:encoded><![CDATA[<p>Convert an RTF or Word doc to PDF with CF? Not that I know of. Neither cfdocument nor cfpdf will do that. This whole method is clunky at best and may not work as Word and CF evolve. Actually, I was kinda surprised it can still be done at all.</p>
<p>BTW, I LOVE the anti-spam because I no longer spend an hour a day deleting links to porn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1002</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Fri, 05 Mar 2010 18:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1002</guid>
		<description>FIRST! Your anti-spam thing drives me nuts because I always forget it the first time around. grrrr
Anyway, yes, if I just put in the path to the file it opens right up correctly. 

So what I tried doing was using an iframe to grab the old CF5 template that opened the RTF file. It worked except I could not edit it. I then ran it from the link on the page that lists the documents. No go. Says it can&#039;t find the RTF file. That is strange. The link opens a new window. That window is the one that I put the iframe on originally. Maybe too many layers and permissions involved. 

Anyway, know of any workarounds for this? Before I go on a massive wild google chase, do you know if I can convert them to PDF?</description>
		<content:encoded><![CDATA[<p>FIRST! Your anti-spam thing drives me nuts because I always forget it the first time around. grrrr<br />
Anyway, yes, if I just put in the path to the file it opens right up correctly. </p>
<p>So what I tried doing was using an iframe to grab the old CF5 template that opened the RTF file. It worked except I could not edit it. I then ran it from the link on the page that lists the documents. No go. Says it can&#039;t find the RTF file. That is strange. The link opens a new window. That window is the one that I put the iframe on originally. Maybe too many layers and permissions involved. </p>
<p>Anyway, know of any workarounds for this? Before I go on a massive wild google chase, do you know if I can convert them to PDF?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1001</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Fri, 05 Mar 2010 18:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1001</guid>
		<description>@Don

So if you open the file directly, without using CFCONTENT, it&#039;s OK?

There&#039;s a big difference between CF5/Word 2K/Win2000 and what we have now. Unfortunately, Adobe didn&#039;t exactly embrace compatibility with its competitor&#039;s products. It wants you to use PDFs instead.

BTW, CF5/Word 2K/Win2000 was the same environment where I first used this. Instructions are in the CF5 WACK book.</description>
		<content:encoded><![CDATA[<p>@Don</p>
<p>So if you open the file directly, without using CFCONTENT, it&#039;s OK?</p>
<p>There&#039;s a big difference between CF5/Word 2K/Win2000 and what we have now. Unfortunately, Adobe didn&#039;t exactly embrace compatibility with its competitor&#039;s products. It wants you to use PDFs instead.</p>
<p>BTW, CF5/Word 2K/Win2000 was the same environment where I first used this. Instructions are in the CF5 WACK book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-1000</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Fri, 05 Mar 2010 17:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=238#comment-1000</guid>
		<description>Problem is I get garbage out of my RTF files when I try to read them with CFCONTENT. Each RTF file has a .dot file in the same folder if that makes a difference.
This used to work under CF5 on a W2K server that had Office 2k on it. 

Now I get garbage like this:
???&gt;?????????????????????????????????????????????????????????????????????????????????????????????????????????????3 ?????bjbj?? 1T??? ?@???lzzzz...B?*?*?*8?+?B??????%???47?z?&#124;?&#124;?&#124;?&#124;?&#124;?&#124;?$?  ??.S??@%?S?S?

I do a fileread and then 
&lt;cfcontent type=&quot;application/msword&quot;&gt; or application/rtf and get nothing but trash.

Any ideas?</description>
		<content:encoded><![CDATA[<p>Problem is I get garbage out of my RTF files when I try to read them with CFCONTENT. Each RTF file has a .dot file in the same folder if that makes a difference.<br />
This used to work under CF5 on a W2K server that had Office 2k on it. </p>
<p>Now I get garbage like this:<br />
???&gt;?????????????????????????????????????????????????????????????????????????????????????????????????????????????3 ?????bjbj?? 1T??? ?@???lzzzz...B?*?*?*8?+?B??????%???47?z?|?|?|?|?|?|?$?  ??.S??@%?S?S?</p>
<p>I do a fileread and then<br />
&lt;cfcontent type=&quot;application/msword&quot;&gt; or application/rtf and get nothing but trash.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
