Printing 2x Types of Reports - Help Required Please!!!!!! (Re-Post from Code Samples)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printing 2x Types of Reports - Help Required Please!!!!!! (Re-Post from Code Samples)

    Hi,

    Hoping someone may be able to help or tell me if this is even possible.

    I have created programs for our CNC Engineers to run on our shop floor CMMs. Everything is running fine but I was thinking of creating a custom report to make things easier for the engineers. everything is running in protected mode, so they cant make any changes.

    All my report printing is automated. so the report is automatically sent to the part folder etc. based on the information entered into the routine by the engineers. i am also using Q-Das to help with the spc but currently I am showing text only report but i am going to create a custom cad based report.

    Does any one know of anyway, i can still show my custom report for the engineers but print off the text report to the part folder so our inspection department can review the text only report and adjust things if necessary.

    I can re output the dimensions at the bottom of the report so that i can create a text report from this information, just struggling to do this.

    Would really appreciate if anyone could help

  • #2
    This would work....

    Report dimensions

    Use print command to print full report to folder

    Load Custom report

    Use print command (with show report ticked) to generate another PDF and display it to the Engineers




    Code:
    DIM LOC4= LOCATION OF CIRCLE PCD_CIR5 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    X 28.991 0.050 0.050 28.991 0.000 0.000 ----#----
    Y -28.991 0.050 0.050 -28.991 0.000 0.000 ----#----
    D 16.400 0.050 0.050 16.400 0.000 0.000 ----#----
    END OF DIMENSION LOC4
    DIM LOC5= LOCATION OF CIRCLE PCD_CIR6 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    X 0.000 0.050 0.050 0.000 0.000 0.000 ----#----
    Y -41.000 0.050 0.050 -41.000 0.000 0.000 ----#----
    D 16.400 0.050 0.050 16.400 0.000 0.000 ----#----
    END OF DIMENSION LOC5
    DIM LOC6= LOCATION OF CIRCLE PCD_CIR7 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    X -28.991 0.050 0.050 -28.991 0.000 0.000 ----#----
    Y -28.991 0.050 0.050 -28.991 0.000 0.000 ----#----
    D 16.400 0.050 0.050 16.400 0.000 0.000 ----#----
    END OF DIMENSION LOC6
    
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,AUTO=8,AUTO OPEN REPORT=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_OUTPUT=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    
    CS3 =REPORT/CUSTOM, FILENAME=Custom Report1, Section=-1
    PARAM/=
    ENDCUSTOM/
    
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,AUTO=8,AUTO OPEN REPORT=ON,$
    TO_PRINTER=OFF,COPIES=1,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    TO_EXCEL_OUTPUT=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    Automettech - Automated Metrology Technology

    Comment


    • #3
      Thanks NinjaBadger. I will give this a try tomorrow morning.

      Comment


      • #4
        Hi,

        NinjaBadger. i did that and i got the custom report to come. Apologies but is there anyway to clear the text rport and only show the custom one, when it prints the report it merges the two together.

        Comment


        • NinjaBadger
          NinjaBadger commented
          Editing a comment
          Hmmm, not sure, works okay for me.

      • #5
        Also i am having a nightmare with the reporting changing all my file formats to .pdfs, when i want the text report to be .RTF and the custom report as a .PDF!!

        why is things never simple

        Comment


        • #6
          i managed to get what you said to work something i was doing. Apologies.

          My issue now is that the print command changes both my prints to PDF.

          I need the first rport to print to an .RTF file and the second as a .PDF

          i have an automatic folder script at the beginning which sets my file path and then a print command that prints using APPEND, see below.

          Screenshot 2021-01-24 125403.jpg

          but with the custom report h have it has images etc. and this option wont work

          Comment

          Related Topics

          Collapse

          Working...
          X