.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi
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.
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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:
ftp <enter>
open printer.ip.address
<login> user
<pword> guest
put "your printfile"
quit
If that works, you can code an ftp transfer using the system.net namespace. Post back if you want an example.
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Thanks
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
OK. I will post it in the morning - miller time now.
Try the script from the same folder (c:\lisp) with put "x.plt".
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This might help you
From within DOS command:
net use LPT1 \\PrinterIpAddress\lpr
copy /b C:\temp\xxx.prn LPT1
or
lpr -S PrinterIpAddress -P printer -o l c:\temp\xxx.prn
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Thanks
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Sorry!
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Oops the put command does work on HP plotters I was trying it on an Oce.
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Copy .plt files to a plotter
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
did you verify the ipadress of the printer ?
try
ping <ipadress>
or
telnet <ipadress>
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


