Print Preview ActiveX Active Users: 14 / Visits Today: 21
Highest Active Users: 14
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
 CurrentY - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: DeviceName - Property Topic Next Topic: CurrentX - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/14/2005 :  17:35:42  Show Profile
Property CurrentY

Action:

This property sets or returns the vertical coordinate (yPos) for the next printing or drawing method.

Syntax:

CurrentY ( = lYpos As Long)

Parameter   Description           
  • lYpos Vertical coordinate
    Remarks:

    The value of CurrentY is used by various output methods to determine the location of output. In many cases, these methods update the values of CurrentY in relation to the Font properties, LineWidth, LeadingVal after execution. 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.AddTextAt "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.AddTextAt "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
    CurrentX -----------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=347
    LeadingVal -------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=389
    LineWidth ---------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=437

    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:35:11
    Go to Bottom of Page
      Previous Topic: DeviceName - Property Topic Next Topic: CurrentX - 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