hexagon logo

Print command not working

Hi all......


today I tried the print command for the first time, everything seems like correct but still its not woring.

It is not getting saved in the location which i defined, instead of that its storing some other location.
i want to save my reports in "C:\Reports\customer_name\Part_number\Lot_numb er" in the format of Part_number__ddmmyyyy__variant.pdf
if the operator enters new lot number means pc-dmis should create a new folder by itself.

here my code is , if there is any mistake pls correct me.
thanks in advance.



"header section"

C1         =COMMENT/INPUT,YES,FULL SCREEN=NO,
            ENTER PART NUMBER
C2         =COMMENT/INPUT,YES,FULL SCREEN=NO,
            ENTER JOB ROUTER NUMBER
C3         =COMMENT/INPUT,YES,FULL SCREEN=NO,
            ENTER CUSTOMER NAME
            ASSIGN/PART_NUM=C1.INPUT
            ASSIGN/LOT_NUM=C2.INPUT
        ASSIGN/CUST_NAME=C3.INPUT    
            ASSIGN/DATE=GETPROGRAMINFO("DATE")
            ASSIGN/VARIANT=GETPROGRAMINFO("STATSCOUNT")




"at the end of the prograrm"

             ASSIGN/FILE_NAME=PART_NUM+"__"+DATE+"__"+VARIANT+".PDF"
            ASSIGN/REPORT_PATH="C:\REPORT\CUST_NAME\PART_NUM\LOT_NUM\\"
            ASSIGN/REPORT=REPORT_PATH+FILE_NAME
            PRINT/REPORT,EXEC MODE=END,$
              TO_FILE=ON,OVERWRITE=REPORT,$
              TO_PRINTER=OFF,$
              TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME="",$
              REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
              PREVIOUS_RUNS=DELETE_INSTANCES
Parents
  • Print commands are funny, on my end, if the print under the file dropdown is not turned on and set to a bogus dummy output, the print command in the edit window wont function. May not apply to you cuz it actually outputting it not the issue but location.

    When in doubt of variable values hover over them and you can see variable output or use the ol' poor mans debugger trick, Operator comments.
Reply
  • Print commands are funny, on my end, if the print under the file dropdown is not turned on and set to a bogus dummy output, the print command in the edit window wont function. May not apply to you cuz it actually outputting it not the issue but location.

    When in doubt of variable values hover over them and you can see variable output or use the ol' poor mans debugger trick, Operator comments.
Children
No Data