Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM and UNIX

Status
Not open for further replies.

programmher

Programmer
May 25, 2000
235
US
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=&quot;COM&quot;
name=&quot;objWord&quot;
class=&quot;Word.Application&quot;
action=&quot;CONNECT&quot;>

<CFCatch>

<CFTry>

<CFObject Action=&quot;Create&quot;
Class=&quot;Word.Application&quot;
Name=&quot;objWord&quot;
Type=&quot;Com&quot;>


<CFCatch Type=&quot;Object&quot;>
<Font Color=&quot;Red&quot;>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>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top