Send output to printer

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Send output to printer

  • Creator
    Topic
  • #50239
    Mark Perschbacher
    Participant

    I have run across several threads dealing with sending message data to a printer, but if someone could paste in a some of the tcl code to  do this, that would be great.  Also, I am wondering if this could be done within an xlate , or if it would be better to set up a proc in Outbound data, etc.   We were sending ORM messages  into one of our hosts, and capturing the IN1 data, but have decided to just generate a hard copy of the insurance data on a  Windows printer.  We are a Win2003, QDX 5.3 site.

Viewing 1 reply thread
  • Author
    Replies
    • #65293
      James Cobane
      Participant

      Mark,

      Assuming you are on AIX and have printers/queues defined (i.e. myprintQ in this example), then by putting whatever information you want to print to a file, you can print that file.  Below are commands that you could execute within tcl to dump the information to a file and print it:

          exec echo “Here is some text to print” > print.txt

          exec lpr -PmyprintQ print.txt              

      Hope this helps.

      Jim Cobane

      Henry Ford Health

    • #65294
      Mark Perschbacher
      Participant

      We operate on a Windows 2003 platform.

Viewing 1 reply thread
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,115
Forums
28
Topics
9,290
Replies
34,423
Topic Tags
286
Empty Topic Tags
10