Print Preview ActiveX Active Users: 45 / Visits Today: 131
Highest Active Users: 45
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
 AddReference - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: AddBarCode - Method Topic Next Topic: AddPage - Method  

emiel
Administrator

Belgium
327 Posts

Posted - 07/14/2005 :  13:04:52  Show Profile
Method AddReference

Action:

This method adds a reference element to the current frame or page.

Syntax:

AddReference (strPage As String, strFrame As String, strElement As String)
Parameter     Description                            
  • strPage Key for page referred, like "Page 2"
  • strFrame Key for frame referred, like "Inside"
  • strElement Key for element referred, like "El 3"
    Remarks:

    strPage is case sensitive so Page and not page.
    strElement is case sensitive so El and not el.
    The space between Page and pagenumber, as well between El and element number is required.

    A reference element is added to a kind of collection of the current frame which results in an exact copy of the referred element being displayed in the current frame and accordingly to current font settings. This can be particularly useful when adding some equal elements to every page.

    To refer to an element of a certain page the string "El ##" is used.

    The element number is generated by any PrintPreview property- or method-assignment in the order of their appearance in the code, like a collection.

    Example:

    To add some elements of page 1 on page 2:

    Private Sub Command0_Click()
    
    preview.AddFirstPage ' this is not an Element
    preview.FontName = "Times" ' This is Element 1
    preview.AddTextAt "this is El 2 of Page 1"
    preview.AddTextAt "this is El 3 of Page 1"
    preview.FontName = "Courier" 'this is Element 4
    preview.AddTextAt "this is El 5 of page 1"
    preview.AddPage ' this is not an Element
    preview.AddTextAt "this is El 1 of page 2 and is printed in Arial due to default settings of AddPage", 1000, 1000
    preview.AddReference "Page 1", "Inside", "El 3" ' This line is on the same place as it was on page 1 only now in Arial
    preview.AddReference "Page 1", "inside", "El 4"' This element sets the font to Courier, copied from page 1 
    preview.AddTextAt "This line is in Courier", 1000, 4000
    preview.EndDocument prOTScreen
    
    End Sub

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

    Edited by - emiel on 07/27/2005 11:44:43
    Go to Bottom of Page
      Previous Topic: AddBarCode - Method Topic Next Topic: AddPage - Method  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000 Version 3.4.02