Print Command v3.5mr2 is bugging me

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

  • Print Command v3.5mr2 is bugging me

    I run this code at the end of some programs:

    C3 =COMMENT/YESNO,PRINT REPORT?
    IF/C3.INPUT=="YES"
    PRINT/REPORT,TO_FILE=OFF,PROMPT,$
    TO_PRINTER=ON,DRAFTMODE=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    END_IF/

    No problem except in subprograms. The subs are called from a main program running a loop allowing me to select which to run.

    If I say no to the print request and run the sub again, it appends the report.

    If I add the following it works fine. The files are saved to a dummy directory for later destruction.

    ELSE_IF/C3.INPUT=="NO" PRINT/REPORT,TO_FILE=ON,OVERWRITE=C:\PCDMISv3_5r2\Inspec tionData\Dummy\sub_SS1427_MH-001_CriticalFeatures001.rtf,$
    TO_PRINTER=OFF,DRAFTMODE=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    END_ELSEIF/

    So what do I do to eliminate this behavior?
    I want to minimize the number of workarounds for me to remember.
    I think my brain is getting full.
    I like to get hammered on Friday night
    Sometimes I can’t wait
    So Monday’s alright

    Lyle Henderson

  • #2
    you need to state:
    overwrite (or)
    append

    C3 =COMMENT/YESNO,PRINT REPORT?
    IF/C3.INPUT=="YES"
    PRINT/REPORT=OVERWRITE,TO_FILE=OFF,PROMPT,$
    TO_PRINTER=ON,DRAFTMODE=OFF,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    END_IF/
    \

    I think?



    G
    sigpic

    Comment


    • #3
      I'll check in the morning when I get to werk
      I'm at home right now 12:43 AM PST
      I have no life.....


      JK


      G
      sigpic

      Comment


      • #4
        And I thought I had problems.
        Wait, I'm just up the road and I'm still at work?
        This is wrong, really wrong.

        After furthur messing around, this seems to be a 3.5 thing or subprograms in general.
        The dialog box has the overwrite for only the output to file or dmis options.
        I tried turning these on but the result was the same.
        Multiple reports sent to printer (how ever many times I initially refuse the print option) and nothing to file.
        But when I add the secon print command it works.
        If I fixed it everyone would probably get confused so maybe I best leave it alone.
        Boss keeps saying we're gonna upgrade but he won't say when.
        I'm tired and I'm going home.
        I like to get hammered on Friday night
        Sometimes I can’t wait
        So Monday’s alright

        Lyle Henderson

        Comment

        Related Topics

        Collapse

        Working...
        X