Your Products have been synced, click here to refresh
Thanks for all the advice, but I think this is now out of my league.
ASSIGN/SN=GETPROGRAMINFO("SERIALNUM") PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,AUTO=SN,OUTPUT_FORMAT/PDF,$ RESET_REPORT=YES,AUTO OPEN=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL=OFF,$ PREVIOUS_RUNS=DELETE_INSTANCES
Try this. If you are looping your program, this code must be inside loop, at the beginning.
C5 =COMMENT/INPUT,YES,FULL SCREEN=NO, Serial Number ASSIGN/SER_NUM=C5.INPUT
Add a Print Command at the end of the loop and F9 on the Report Command. In the Report tab, check the Report output box, click on the drop-down and navigate to the destination folder for the report.
In the File name box at the bottom, type the intended name of the reports followed by an underscore(_). Ex: X4262148_
Save and click "OK" in the Report command.
Back in the Edit window change the "1" after AUTO to "SER_NUM"
PRINT/REPORT,EXEC MODE=END,$ TO_FILE=OFF,AUTO=SER_NUM,AUTO OPEN=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME=,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$ TO_EXCEL=OFF,$ PREVIOUS_RUNS=DELETE_INSTANCES
Each report will have the serial number as part of the filename.
Sub Main(SN As String) On Error GoTo err_Hand: Dim App As Object Set App = CreateObject("PCDLRN.Application") Dim Part As Object Set Part = App.ActivePartProgram Part.serialnumber = SN Part.refreshpart Dim RepWindow As Object Set RepWindow = Part.reportwindow RepWindow.refreshreport Exit Sub err_Hand: MsgBox err.number MsgBox err.description Exit Sub End Sub
ASSIGN/V1=C5.INPUT PRINT/REPORT,EXEC MODE=END,$ TO_FILE=ON,OVERWRITE="W:\pc-dmis files\McBride\validator data\146-3091 complete 2_"+V1,AUTO OPEN REPORT=OFF,$ TO_PRINTER=OFF,COPIES=1,$ TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME= ,$ REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$ TO_EXCEL_OUTPUT=OFF, PREVIOUS_RUNS=DELETE_INSTANCES
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |