Hi ! From a ColdFusion web page I need to create a text file and print it directly to the remote's client LPT1 port to access a special label printer. The text file contains plain ASCII, no special codes besides CR and LF. I tried to use COM and Scripting.FileSystemObject but I get a COM error 0x80040154 "class not registered" on CreateObject() when I try to do it on the remote client. Here is my bit of code from ColdFusion, which should be readable by anyone using VBScript inside his (ASP?) page: <cfscript> FSO_AppID = "Scripting.FileSystemObject"; FSO_CLSID = "{0D43FE01-F093-11CF-8940-00A0C9054228}"; // objFSO = CreateObject("COM", FSO_AppID); <--- This works // objFSO = CreateObject("COM", FSO_CLSID); <--- This works, too objFSO = CreateObject("COM", FSO_CLSID, "REMOTE", "", "127.0.0.1"); // here I get COM error 0x80040154 </cfscript> The first two calls to CreateObject() work local and are commented out. As you can see, my "remote machine" is just "localhost". So if the things commented out work, why does it not work remotely? Reading this NG I found various hints about permission problems and the like, but nothing related to my error. So here are my questions: - how can use FSO to do what I want on the remote client (W2K/SP2 machine, WSH 5.6 installed, IE) ? - what other options to I have ? Thanks very much for any assitance. Any example even if ASP is welcome. Stefan.
|