File Report Number in report

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

  • File Report Number in report

    Well, I'm begginer in PC-Dmis programming, but I'd like to include the file report number in report header with a label. For example:

    REPORT NUMBER 135

    How can I do that?

    Thanks in advance.

  • #2
    Is the report # going to change everytime. If it is you can put an input statement that the operator can type in each time.????
    sigpic.....Its called golf because all the other 4 letter words were taken

    Comment


    • #3
      How do you want to index the report number? Do you want it to start at 1 then index infinitely? By that I mean if you check 10 parts today then check 10 next week do you want next weeks report to start with 11? Or do you want it to start at 1 each time an "order" or "run" is inspected and to start at 1 on the next order?

      These things can be done but how intricate your solution is depends on how you want to count off your reports. BTW saving stats puts an index number on your reports.

      Craig
      <internet bumper sticker goes here>

      Comment


      • #4
        Can you please fill out your Profile under UserCP? What is the version you are running? What kind of machines?????

        As far as listing a variable inside a the Report Header (using the template files): In V4.0 and V4.1, this is impossible to do. However, there is great expectations for version V4.2!

        of course, you can create a header using COMMENT statements. But I agree, that is NOT what you ought to be doing. It all belongs inside the header. So I am anxiously waiting to see how V4.2 is addressing this issue.



        Jan.
        ***************************
        PC-DMIS/NC 2010MR3; 15 December 2010; running on 18 machine tools.
        Romer Infinite; PC-DMIS 2010 MR3; 15 December 2010.

        Comment


        • #5
          I use a DEA MISTRAL CMM with PC-DMIS 3.7 MR2.

          I'll try to explain better my problem. When you select the File | Printing | Edit Window Print Setup and mark "Send Edit window Output to File..." and choose "Auto" option with a index value, that you start, but is automatically incressed every time that program is executed. The index value is that I'd like to show into report.

          Comment


          • #6
            That can be done with a lot of SCRIPTING.

            What you want to do is at the end of the program, put in a PRINT command and send your data to a file.

            Then after the PRINT command, add your script. Your SCRIPT should first find the file by using the dir *.pdf command. The latest file name is last in the list. Then parse the file name using the LEFT and RIGHT commands and you will be able to zoom into the correct index value. Then load this index value into a variable. Then refresh the report and voila, you got what you want.

            I do something similar, but it was awful. Lots and lots of VB programming. It works now but I have 6 or 7 different programs involved to do this all righht. It also all depends on your directory structure etc etc etc.

            Good luck, you'll need all the luck you can get to pull this one off....



            Jan.
            ***************************
            PC-DMIS/NC 2010MR3; 15 December 2010; running on 18 machine tools.
            Romer Infinite; PC-DMIS 2010 MR3; 15 December 2010.

            Comment

            Related Topics

            Collapse

            Working...
            X