Form Editor Examples

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

  • Form Editor Examples

    Does anyone have an example of this that I can use to learn from.
    Robert Horne
    Va.

  • #2
    There's a tutorial in the v4.x help files that should walk you through how to use the form editor create a form. See the "Creating Forms" topic under the "Reporting Measurement Results" section.
    Jared Hess - PC-DMIS Documentation Team Lead @ HMI
    [View 2008 Reporting Tutorials Here]

    Comment


    • #3
      Hey Jared,

      Sort on the same note. Do you know how I can go about printing a form?

      I have tried the steps I would have taken in a hyper-report, that is...

      Open up the form editor

      Insert my .jpg (its a screen captureof the cad w/some labels turned on)

      insert a button control

      right click the button control and in the properties window go to eventclick, from there double click and choose C++ action|print|ok|save form

      At that point I insert the form into my program and run it, the form pops up, I have a button to click and when I click it it opens up the print dialog box I click print and it spits a blank page out at me.
      sigpic

      James Mannes

      Comment


      • #4
        Sorry James. I get the same problem as you. Sounds like a bug to me. One thing you can do is set AUTOPRINT=PRINTER on the FORM/FILENAME command, and it'll send the form to the printer. But then you wouldn't be able to control it by clicking a button on the form...

        I tried coming up with a workaround where the form's Print button changes the text for a hidden text object named txtPrint to "TRUE" when clicked on and then closes the form, and then gives that value to a variable in the Edit window which when true would then print out the page.

        But this only sometimes actually prints. Most of the time it too spits out a blank page:

        Code:
        SHOWFORM   =LABEL/
                    ASSIGN/BLN_PRINT="FALSE"
        CS1        =FORM/FILENAME= C:\PCDMIS42BETA\TESTPRINT.FORM, AUTOPRINT=NO
                    PARAM/TXTPRINT.TEXT=BLN_PRINT
                    PARAM/=
                    ENDFORM/
                    IF/BLN_PRINT=="TRUE"
        CS2        =FORM/FILENAME= C:\PCDMIS42BETA\TESTPRINT.FORM, AUTOPRINT=PRINTER
                    PARAM/=
                    ENDFORM/
                    GOTO/SHOWFORM
                    END_IF/
        I don't know.
        Last edited by JaredHess; 09-06-2007, 03:34 PM.
        Jared Hess - PC-DMIS Documentation Team Lead @ HMI
        [View 2008 Reporting Tutorials Here]

        Comment


        • #5
          I was surprised this morning when the program I inserted the form into actually printed it as opposed to yesterday when it didn't. Hmmm
          sigpic

          James Mannes

          Comment

          Related Topics

          Collapse

          Working...
          X