• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Distinguished Contributor
    Posts: 109
    Registered: ‎04-14-2005
    Accepted Solution

    Copy .plt files to a plotter

    315 Views, 19 Replies
    04-04-2012 12:36 PM

    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

    Please use plain text.
    Valued Mentor
    Posts: 297
    Registered: ‎03-31-2005

    Re: Copy .plt files to a plotter

    04-04-2012 01:56 PM in reply to: GeeHaa

    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.

    Please use plain text.
    Distinguished Contributor
    Posts: 109
    Registered: ‎04-14-2005

    Re: Copy .plt files to a plotter

    04-04-2012 02:54 PM in reply to: fieldguy

    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

    Please use plain text.
    Valued Mentor
    Posts: 297
    Registered: ‎03-31-2005

    Re: Copy .plt files to a plotter

    04-04-2012 03:29 PM in reply to: GeeHaa

    OK.  I will post it in the morning - miller time now.

    Try the script from the same folder (c:\lisp) with put "x.plt".

    Please use plain text.
    Valued Contributor
    SENL1362
    Posts: 58
    Registered: ‎07-20-2011

    Re: Copy .plt files to a plotter

    04-04-2012 11:32 PM in reply to: GeeHaa

    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

     

     

    Please use plain text.
    Distinguished Contributor
    Posts: 109
    Registered: ‎04-14-2005

    Re: Copy .plt files to a plotter

    04-05-2012 10:42 AM in reply to: GeeHaa

    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

    Please use plain text.
    Valued Mentor
    Posts: 297
    Registered: ‎03-31-2005

    Re: Copy .plt files to a plotter

    04-05-2012 11:01 AM in reply to: GeeHaa

    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!

     

     

    Please use plain text.
    Distinguished Contributor
    Posts: 109
    Registered: ‎04-14-2005

    Re: Copy .plt files to a plotter

    04-05-2012 11:01 AM in reply to: fieldguy

    Oops the put command does work on HP plotters I was trying it on an Oce.

    Please use plain text.
    Valued Contributor
    SENL1362
    Posts: 58
    Registered: ‎07-20-2011

    Re: Copy .plt files to a plotter

    04-05-2012 11:28 PM in reply to: GeeHaa

    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.

     

     

    Please use plain text.
    Valued Contributor
    SENL1362
    Posts: 58
    Registered: ‎07-20-2011

    Re: Copy .plt files to a plotter

    04-05-2012 11:38 PM in reply to: GeeHaa

    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

     

     

    Please use plain text.