Print Preview ActiveX Active Users: 28 / Visits Today: 576
Highest Active Users: 361
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 DrawForm - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: EmailAutomaticSend - Property Topic Next Topic: ModifyColumn - Method  


327 Posts

Posted - 06/16/2006 :  11:01:45  Show Profile
Method DrawForm


This method draws a VB-form in the current frame of the actual page.

Syntax :

DrawForm ((oFrm As Object, lXPos As Long, lYposAs Long, [sWidth As Single = -1], [sHeight As Single = -1])

Parameter    Description                                  
  • oFrm An existing form-object
  • lXpos Right-Top X-axis position in twips
  • lYpos Right-Top Y-axis position in twips
  • sWidth The wished width of the form in twips
  • sHeight The wished height of the form in twips

    This method is not available for MS-Access.

    All parameters can be a Ctwips function.
    After the completion of the method the values of CurrentX and CurrentY are set to lXpos and lYpos.


    To preview a form in a reduced size :

    Private Function cmdShowForm_Click(oFrm as Object)
    preview.AddFirstPage 500, 500, 500, 500
    preview.DrawForm  oFrm, 1000, 1000, oFrm.Width / 1.1, oFrm.Height / 1.1
    preview.EndDocument prOTScreen
    End Sub
    or just a preview of the active form with the actual size :

    preview.DrawForm Me, 100, 100
    Come and visit :

    Edited by - emiel on 06/16/2006 11:45:04
    Go to Bottom of Page
      Previous Topic: EmailAutomaticSend - Property Topic Next Topic: ModifyColumn - Method  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02