I'm trying to copy plot files to a plotter with filecopy(plotfile,\\server\plottername) it works fine when I have the UNC address but there are network printers without this address that I need to copy files too. I have the IP addresses of these printers.Is there a way to send a file to an IP address?
Thanks in advance
Solved! Go to Solution.
I have used FTP to do this with several HP devices. I think all hp printers support ftp. You can test it from the dos prompt with the following 6 lines:
put "your printfile"
If that works, you can code an ftp transfer using the system.net namespace. Post back if you want an example.
Thanks very much for the response.
It lets me login but when I use the put command It gives me .550 the system cannot find the specified file.
Im using Put C:\lisp\X.plt I tried it with quotes also. But I would like to see the code.
This might help you
From within DOS command:
net use LPT1 \\PrinterIpAddress\lpr
copy /b C:\temp\xxx.prn LPT1
lpr -S PrinterIpAddress -P printer -o l c:\temp\xxx.prn
I tried changing to the C:\lisp folder and using put "x.plt". Two lines come up, one says 200 Port command successful. The other says 550 The system cannot find the file specified . I tried using lpr but it comes up as an unrecognized command.
I am having trouble (error 550) coding the script. In other words, I can manually ftp using open and put, but error 550 is persistent in .NET. I checked my other app and it uploads TIF images to a KIP printer without issue but the same code will not work with my hp laser.
There are examples on the internet (http://www.vbforums.com/showthread.php?t=468649) but I do not have the time to figure out why I cannot get that to work.
I am leaning towards the "net use" suggestion from SENL1362. I have used LPR before as well but can't remember where it came from.
using XP? changes are you did not install the Print Services for Unix.
Add Windows components/other network file and print services.
You'll need the i386 part of the xp installation disc.
did you verify the ipadress of the printer ?
You can log in on these oce printers if you have a root password
telnet XXXXXXX Trying XXX.XXX.XXX.XXX... Connected to XXX.XXX.XXX.XXX. Escape character is '^]'. Network Printer Server Version 5.6.3 (XXX.XXX.XXX.XXX) login: root Password: <root pw here> Welcome root user XXX.XXX.XXX.XXX:root> list sysinfo