I use some variables and a print command in my program to save a pdf to a specific folder on the server, only issue is with 2019 R1 it's opening the prompt window when it tries to write the pdf file instead of just printing it to folder automatically. Is it something in my code or a bug in the service pack that I have?
Here is the code:
$$ NO,
Variable Assignments
ASSIGN/V1="C:\USERS\******\ONEDRIVE - ****************, INC\MYLAPTOP\DESKTOP\CMM Reports\Demo Program Lab Tech\" + "Demo Program"
ASSIGN/V2=GETTRACEVALUE("Tracking Number")
ASSIGN/V3=V2
$$ NO,
Print Command
PRINT/REPORT,EXEC MODE=END,$
TO_FILE=ON,OVERWRITE=V1 + "_" + V2.PDF,AUTO OPEN=OFF,$
TO_PRINTER=OFF,COPIES=1,$
TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
TO_EXCEL=OFF,$
PREVIOUS_RUNS=DELETE_INSTANCES
Here is the code:
$$ NO,
Variable Assignments
ASSIGN/V1="C:\USERS\******\ONEDRIVE - ****************, INC\MYLAPTOP\DESKTOP\CMM Reports\Demo Program Lab Tech\" + "Demo Program"
ASSIGN/V2=GETTRACEVALUE("Tracking Number")
ASSIGN/V3=V2
$$ NO,
Print Command
PRINT/REPORT,EXEC MODE=END,$
TO_FILE=ON,OVERWRITE=V1 + "_" + V2.PDF,AUTO OPEN=OFF,$
TO_PRINTER=OFF,COPIES=1,$
TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
TO_EXCEL=OFF,$
PREVIOUS_RUNS=DELETE_INSTANCES
Comment