Reporting Help

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

  • Reporting Help

    OK, someone said something earlier in another thread that caught my interest about giving the user an option of whether to print the report or not. So I made up this little snippet to throw in some of the things I'm doing, and I'm running into a problem....

    I'm placing this code at the end of my program, taking operator input on whether to send to printer, file, or just exit without reporting. And it works! Once.

    You see, whatever you select the first time, it will do, but after printing to a file or to printer, it then clears the reporting edit window so there's nothing to print if you choose to take the other option before exiting. How can I prevent it from clearing out the window?


    Here is my code, tho I don't believe 'the code' is really the problem here... but I remain teachable...

    COMMENT/DOC,******************************
    ,*
    ,Print Report Option
    ,*
    ,Give the user the option of (1) Send the
    ,report to the printer, (2) Send the report
    ,to a file, or (0) No report, and exit.
    ,*
    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=ON,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    END_CASE/
    CASE/2
    PRINT/REPORT,TO_FILE=ON,OVERWRITE=\\server\quality\CMM\P C-DMIS Programs\Kevin\cmmreport.pdf,$
    TO_PRINTER=OFF,DRAFTMODE=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    END_CASE/
    END_SELECT/
    UNTIL/C1.INPUT < 1 OR C1.INPUT > 2


    Thanks guys!


    Kevin
    Kevin N. Thompson - Thompson Digital Image
    Quality Manager - Rj Link International

Related Topics

Collapse

Working...
X