I need to have the pdf printed at the end of the run of a program serialized to a specific serial number input via an operator comment at the beginning of the run of the program. Any thoughts?
I am running PC-DMIS 2010 but anything that works from PC-DMIS 3.2063 up to PC-DMIS 2010 should work.
Thanks for any help you folks can provide. This place is a great resource for us new guys.
this is the code i use. i got this by using the search engine also.ASSIGN/PART = STR(GETTEXT(191,1,{FILEHEDR}))
ASSIGN/REVI = STR(GETTEXT(192,1,{FILEHEDR}))
ASSIGN/SERI = STR(GETTEXT(193,1,{FILEHEDR}))
ASSIGN/STATCNT = STR(GETTEXT(194,1,{FILEHEDR}))
ASSIGN/DATE = SYSTEMDATE("MMddyy")
ASSIGN/TIME = SYSTEMTIME("HHmmss")
ASSIGN/FILESTORELOCATION = "C:\Program Files\reports\
insert file name here\_"
ASSIGN/FILENAME = PART + "_" + DATE + "_" + TIME + C1.INPUT + ".PDF"
ASSIGN/VAL_FILE = FILESTORELOCATION + FILENAME
PRINT/REPORT,EXEC MODE=END,$
TO_FILE=ON,OVERWRITE=VAL_FILE,$
TO_PRINTER=OFF,$
TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
PREVIOUS_RUNS=DELETE_INSTANCES
also if you want to input the date, use underscore and not backslashes. it wont
work with the backslashes.
this is the code i use. i got this by using the search engine also.ASSIGN/PART = STR(GETTEXT(191,1,{FILEHEDR}))
ASSIGN/REVI = STR(GETTEXT(192,1,{FILEHEDR}))
ASSIGN/SERI = STR(GETTEXT(193,1,{FILEHEDR}))
ASSIGN/STATCNT = STR(GETTEXT(194,1,{FILEHEDR}))
ASSIGN/DATE = SYSTEMDATE("MMddyy")
ASSIGN/TIME = SYSTEMTIME("HHmmss")
ASSIGN/FILESTORELOCATION = "C:\Program Files\reports\
insert file name here\_"
ASSIGN/FILENAME = PART + "_" + DATE + "_" + TIME + C1.INPUT + ".PDF"
ASSIGN/VAL_FILE = FILESTORELOCATION + FILENAME
PRINT/REPORT,EXEC MODE=END,$
TO_FILE=ON,OVERWRITE=VAL_FILE,$
TO_PRINTER=OFF,$
TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
PREVIOUS_RUNS=DELETE_INSTANCES
also if you want to input the date, use underscore and not backslashes. it wont
work with the backslashes.