hexagon logo

Report Window Print Setup - Not printing to correct location

So, when I setup my Report Window Printing, I choose a location for my PDF file to print to. But I've noticed in the last few days, that this doesn't seem to be staying with my programs.

For example, I'll run program A, and the results save to folder A. But when I open program B, the results are still wanting to save to folder A.

However, the 'path' that is specified in program B is correct, but PC-Dmis is still trying to save to the previous location.

This hasn't happened on all of my programs, but it's happed on a lot, say 10 out of the 15 that I ran yesterday.

Any ideas?
  • This puts it right where I want with a date stamp. Turn all the stuff of in the edit window print setup. The code will make it happen. Example :

    YOURCHOICE =LABEL/
    ASSIGN/DATE = SYSTEMDATE("MM_dd_yyyy")
                ASSIGN/TIME = SYSTEMTIME("HH_mm")
                ASSIGN/FILENAME = "P:\Reports\GKN\Case\Concentricity\_"+DATE+"_"+TIME+".rtf"
                YOURCHOICE =LABEL/
    PRINT_IN   =COMMENT/INPUT,YES,'Select a print option:
                                 ,
                                 ,1 .... Print the report
                                 ,2 .... Skip the printed report'
                IF_GOTO/PRINT_IN.INPUT=="1",GOTO = YESPRINT
                IF_GOTO/PRINT_IN.INPUT=="2",GOTO = NOPRINT
                GOTO/YOURCHOICE
    YESPRINT   =LABEL/
                PRINT/REPORT,EXEC MODE=END,$
                  TO_FILE=ON,OVERWRITE=FILENAME,$
                  TO_PRINTER=ON,DRAFTMODE=OFF,$
                  TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
                  REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                  PREVIOUS_RUNS=DELETE_INSTANCES
                GOTO/END_PROGRAM
    NOPRINT    =LABEL/
                PRINT/REPORT,EXEC MODE=END,$
                  TO_FILE=ON,OVERWRITE=FILENAME,$
                  TO_PRINTER=OFF,DRAFTMODE=OFF,$
                  TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
                  REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                  PREVIOUS_RUNS=DELETE_INSTANCES
                GOTO/END_PROGRAM
    
    


    HTH,

    TK
  • Hello.

    @tking:
    I was just about to get my arms up, when I read this.
    Unfortually, I didn't get that far. It doesn't work for me. :-(

    I have made a program, just as You have typed it, but I get no print and no PDF.
    I turned off any kind of print in the print-set-up's (incl. my Marked Set), but no results at all.


    I have tried to find an answer to my problem ( http://www.pcdmisforum.com/showthread.php?29932-Printing-reports-to-paper-pdf-and-SPC), but with no luck.
    I wanted to control the printing in three steps:

    1. Paper & no PDF.
    2. No paper, but PDF only.
    3. Paper and PDF.

    from the program, but it doesn't work for me. So; I give up!

    Waiting for my supplier to update my software. Hopefully it will work after that, but I'm pretty sure, that something else will go missing.
    That's PC-DMIS :-)