programmher
Programmer
I have a code that uses a COM object to connect to MSWord. The problem I have is that I am running CF 4.5 on UNIX. I get the below error:
COM is not supported in the UNIX versions of ColdFusion.
All references I have found indicate that CF4.5 does not support COM; however, there must be some way for me to simply conect to applications (like MSWord, Excel, etc.)
Does anyone know the workaround?
Below is my code:
<CFTry>
<cfobject type="COM"
name="objWord"
class="Word.Application"
action="CONNECT">
<CFCatch>
<CFTry>
<CFObject Action="Create"
Class="Word.Application"
Name="objWord"
Type="Com">
<CFCatch Type="Object">
<Font Color="Red">Cannot create Word Object<br> Please make sure Word is installed and that Cold Fusion has permissions to user the Word COM objects.</font>
<CFAbort>
</CFCatch>
</CFTry>
</CFCatch>
</CFTry>
COM is not supported in the UNIX versions of ColdFusion.
All references I have found indicate that CF4.5 does not support COM; however, there must be some way for me to simply conect to applications (like MSWord, Excel, etc.)
Does anyone know the workaround?
Below is my code:
<CFTry>
<cfobject type="COM"
name="objWord"
class="Word.Application"
action="CONNECT">
<CFCatch>
<CFTry>
<CFObject Action="Create"
Class="Word.Application"
Name="objWord"
Type="Com">
<CFCatch Type="Object">
<Font Color="Red">Cannot create Word Object<br> Please make sure Word is installed and that Cold Fusion has permissions to user the Word COM objects.</font>
<CFAbort>
</CFCatch>
</CFTry>
</CFCatch>
</CFTry>