Using laprint in a script

Sort:
You are not authorized to post a reply.
Author
Messages
JimY
Veteran Member
Posts: 510
Veteran Member
    Because my laprint command is more that 50 characters I have  read on the Infor support site that I have to create a script that will perform the print function.  Does anyone have a sample script and how I would execute it that I could look at?  I am on a Windows 2008 server and we are upgrading to Version 10..  Thank you.
    troelofs
    Advanced Member
    Posts: 19
    Advanced Member
      Hi Jim,

      To run laprint commands from a script on Windows, create a batch file, i.e. printername.bat and then call that script in prtdef using the full path to the printer.

      Sample printername.bat file:

      D:\lsftest\gen\bin\laprint -o landscape \\vaigrrnt06\be6bw41

      Printer Command value in prtdef:

      D:\lsftest\law\bin\printername.bat

      As an aside, printing using laprint tends to be slow (atleast in my environment) so I would encourage your users to print using the pdf option since printing is handled on their pc whenever possible.
      JimY
      Veteran Member
      Posts: 510
      Veteran Member
        Thank you troelofs. I was able to figure out how to get it to work with perl. I created a two line perl script and then in the prtdef command I put "perl myprint.pl". I am only using to send the checks to some software that formats them and prints them on check stock so the users will only use it for that. Thank you for responding.
        You are not authorized to post a reply.