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

 All Forums
 Print Preview
 Help file
 CurrentX - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: CurrentY - Property Topic Next Topic: CurrentPage - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/14/2005 :  17:18:46  Show Profile
Property CurrentX

Action:

This property sets or returns the horizontal coordinate (xPos) for the next printing or drawing method.

Syntax:

CurrentX ( = lXpos As Long)

Parameter   Description           
  • lXpos Horizontal coordinate
    Remarks:

    The value of CurrentX is used by various output methods to determine the location of output. In many cases, these methods update the values of CurrentX in relation to the Font properties and line length. The value is in twips.

    Example:

    To draw a line of text at a given position:

    Preview.CurrentX = Preview.ConvertToTwip(prCentimeter, 3)
    Preview.CurrentY = Preview.ConvertToTwip(prCentimeter, 2.5)
    preview.CurrentFrame = "Inside"
    Preview.AddText "This line is displayed left 3 cm and 2.5 cm from the top of the current inside frame of the page" ' note that the x and y parameters are not required because CurrentX and CurrentY are set in advance
    or
    Preview.CurrentX = 1701
    Preview.CurrentY = 1418
    Preview.AddText "This line is displayed left 1701 twips and 1418 twips from the top" ' note that the x and y parameters are not required because CurrentX and CurrentY are set in advance
    See also:

    CurrentFrame ---> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=345
    CurrentY -----------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=348

    Come and visit :
    www.immoassist.com
    www.ppreview.net
    www.vbdiamond.com
    www.d2dsources.com
    www.mandix.com

    Edited by - emiel on 08/02/2005 12:28:28
    Go to Bottom of Page
      Previous Topic: CurrentY - Property Topic Next Topic: CurrentPage - Property  
     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