hexagon logo

Report Pop Up

Would the following even work?

I would like the operator to review the report, insert a comment at the end and the print it to a pdf. Our process is to run a part, read a report after it prints and the program is complete, and then gage any diameters that appear to be out. We need a comment at the end of the report that states the part was gaged. Any thoughts??

I've been playing with a few things but cannot get what I want exactly.

Thanks in advance.

No pressure, but this is HOT.
Parents
  • ** Back to It **

    Enclosed is my program code for creating the report. That part works awesome.
    $$ NO,
                =====
                =====
                ASSIGN/DATE=SYSTEMDATE("ddMMMyyyy")
                ASSIGN/TIME=SYSTEMTIME("HH:mm")
                ASSIGN/PDFNAME="K:\TMTCMM\C27_VBlock_CMM_Reports\\PDF_Test_"+TIME+"_"+DATE+".PDF"
    $$ NO,
                =====
                PRINT/REPORT,EXEC MODE=END,$
                  TO_FILE=ON,OVERWRITE=PDFNAME,$
                  TO_PRINTER=OFF,$
                  TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME=,$
                  REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                  PREVIOUS_RUNS=KEEP_INSTANCES


    This is my script code:
    Sub Main(strFileName As String)
    Shell "C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe " & strFileName
    End Sub


    This is my program code to run the script and open the just created PDF
    CS1        =SCRIPT/FILENAME= C:\USERS\KUGLEJD\DESKTOP\PDF_VIEW.BAS
                FUNCTION/Main,SHOW=NO,[COLOR="#FF0000"]ARG1=STR(PDFNAME),[/COLOR],
                STARTSCRIPT/



    After all that, the PDF Viewer does open, just not the specific report for the part that was just run. Any and all help would be GREATLY appreciated.

    I think my issue is with the script and/or the code to run the script (part in RED).
Reply
  • ** Back to It **

    Enclosed is my program code for creating the report. That part works awesome.
    $$ NO,
                =====
                =====
                ASSIGN/DATE=SYSTEMDATE("ddMMMyyyy")
                ASSIGN/TIME=SYSTEMTIME("HH:mm")
                ASSIGN/PDFNAME="K:\TMTCMM\C27_VBlock_CMM_Reports\\PDF_Test_"+TIME+"_"+DATE+".PDF"
    $$ NO,
                =====
                PRINT/REPORT,EXEC MODE=END,$
                  TO_FILE=ON,OVERWRITE=PDFNAME,$
                  TO_PRINTER=OFF,$
                  TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME=,$
                  REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                  PREVIOUS_RUNS=KEEP_INSTANCES


    This is my script code:
    Sub Main(strFileName As String)
    Shell "C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe " & strFileName
    End Sub


    This is my program code to run the script and open the just created PDF
    CS1        =SCRIPT/FILENAME= C:\USERS\KUGLEJD\DESKTOP\PDF_VIEW.BAS
                FUNCTION/Main,SHOW=NO,[COLOR="#FF0000"]ARG1=STR(PDFNAME),[/COLOR],
                STARTSCRIPT/



    After all that, the PDF Viewer does open, just not the specific report for the part that was just run. Any and all help would be GREATLY appreciated.

    I think my issue is with the script and/or the code to run the script (part in RED).
Children
No Data