Using the LPR Command in PRTDEF

Sort:
You are not authorized to post a reply.
Author
Messages
JimY
Veteran Member
Posts: 510
Veteran Member
    Hello,
         Has anybody come up with a way to use the lpr command in prtdef?  We have a report archiving system that we send reports to and the laprint command will not work.  I can run it from the command line without any issue's, but I cannot find a way to set it up in prtdef.  I tried using a script, but it looks like it is not getting the directory that the print file is located it.  Any help or suggestions on this?  Thank you.
    JimY
    Veteran Member
    Posts: 510
    Veteran Member
      Ok after combing through some KB articles on Infor support I was able to come up with the code below that works.

      
      cat > D:\lawprod\temp\prtfile.%pid%
      lpr -Shmcanyq -PAnyqLaw D:\lawprod\temp\prtfile.%pid%
      rm D:\lawprod\temp\prtfile.%pid%
      


      The KB article was 1190089.

      I forgot to mention that I named the script webprint.bat and in the prtdef I put the script name instead of a printer like so:
       /lawprod/gen/bin/webprint 
      You are not authorized to post a reply.