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
  • Maybe this is the problem that needs to be changed. Your post showed

    ASSIGN/REOPRT_PATH="C:\\REPORT\\CUST_NAME...........etc

    What is the mistake i'm doing ? still, my Reports are getting stored in Program Location


    ASSIGN/FILE_NAME=PART_NUM+"__"+DATE+"__"+TIME+"__"+VARIANT+".PDF"
    ASSIGN/REPORT_PATH="C:\\REPORT\\[COLOR=#FF0000][B]+ CUST_NAME +[/B][/COLOR]"\\" +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


  • assign/report_path="c:\\report\\"+ cust_name +"\\" +part_num+"\\"+lot_num+"\\"
Reply Children
No Data