Comprehensive, categorized, searchable collection of links to ASP & ASP.NET resources...
Our Directory

Applications
ASP.NET Directory
Books & Media
Community
Components
Other ASP Sites
Reference Material
Software & Server
Tutorials & Code
Web Site Hosts

Expand Directory...
Personlise Results...

Newsgroups

Participate in over
100 ASP & ASP.NET related newsgroups right here @ Fuzzy Software...

.NET Framework
- .net.faqs
- .net.framework
- .net.general
- .net.setup
- .net.scripting
- .net.xml

Web Services
- aspnet.webservices
- msdn.soaptoolkit
- msdn.webservices

SQL Server
- sqlserver.setup
- sqlserver.prog...
- sqlserver.tools

Classic ASP
- asp.db
- asp.general
- asp.components

Scripting
- scripting.jscript
- scripting.remote
- scripting.vbscript
- scripting.wsh

All newsgroups...

ASP Built-in
Objects Reference


Application Object
ObjectContext Object
Request Object
Response Object
Server Object
Session Object

Personalise Fuzzy
Make Homepage
Link To Fuzzy
Bookmark This Page

Add our directory to your site in less than
2 minutes...














Whats New!


From: stefan.misch (Stefan Misch)
Subject: Copy a text file to LPT1 on a remote client
Date: 29 May 2002 04:25:13 -0700

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.
Post a follow up to this message...





Ektron web editor and content management software

Receive all the latest quality ASP
& ASP.NET content direct to your inbox. Sign-up to our newsletter.




aspGuys.com

FreeBugTracking.com

ActiveServerPages.ca

ASP Alliance

TheASPSite.org

More partners...

Ektron web editor and content management software
  5813 ASP & ASP.NET resources in over 450 categories and growing daily...
Fuzzy Software - asp / asp.net resources, tutorials, code, scripts, applications, components, newsgroups, hosts and much more... Sitemap 0 1 4