Printing Question (easy I bet!)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • kthompson
    started a topic Printing Question (easy I bet!)

    Printing Question (easy I bet!)

    When using a print command in a program, is there a way to specify which printer to send it to? Right now it's sending to a printer that is not even setup as the default Windows printer for this workstation. The printer I want to send to IS the default Windows printer.

    And I do not want to set it up in the "Edit Window Print Setup" because I'm calling the print command from a Select Case routine so the operator can choose to print, output to file, or just exit.

    Any suggestions?


    Here is the print command:
    Code:
     
    PRINT/REPORT,TO_FILE=OFF,AUTO=1,$
    TO_PRINTER=ON,DRAFTMODE=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    and here is the entire select case routine (nested in a do/until loop so the operator can choose to do both printer and file if desired):
    Code:
     
    DO/
    C1 =COMMENT/INPUT,Choose Report Option:
    ,1 - Send Report to Printer
    ,2 - Send Report to .pdf File
    ,0 - No Report - Exit Program
    ,Type Number and Press Enter...
    SELECT/C1.INPUT
    CASE/1
    PRINT/REPORT,TO_FILE=OFF,AUTO=1,$
    TO_PRINTER=ON,DRAFTMODE=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    END_CASE/
    CASE/2
    PRINT/REPORT,TO_FILE=ON,PROMPT,$
    TO_PRINTER=OFF,DRAFTMODE=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    END_CASE/
    END_SELECT/
    UNTIL/C1.INPUT < 1 OR C1.INPUT > 2

    or if anyone has a better suggestion on how to program this, I'm all ears... still learning... doing alot of this on my own by trial and error.

    Thanks!


    Kevin

Related Topics

Collapse

Working...
X