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

 All Forums
 Print Preview
 Help file
 AddPage - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: AddReference - Method Topic Next Topic: SetPrintToFile - Property  


327 Posts

Posted - 07/14/2005 :  10:50:16  Show Profile
Method AddPage


This method adds a new page at the end of the document.


AddPage (vMarginLeft As Variant, vMarginRight As Variant, vMarginTop As Variant, vMarginBottom As Variant, vHeaderSize As Variant, vFooterSize As Variant)

Parameter           Description            
  • vMarginLeft Size of left margin
  • vMarginRight Size of right margin
  • vMarginTop Size of top margin
  • vMarginBottom Size of bottom margin
  • vHeader SizeDepth of header frame
  • vFooter Size Depth of footer frame

    Each parameter may either be specified as a value, in which case it is taken to be in twips, or as a string like "1 cm" or "1 in".

    If a parameter is specified as a string, it is converted using the standard CTwips method, which allows the dimension to be given in string units (cm / in).


    A new page is added to the end of the document. If the depth of the header is non-zero then a header frame is added, similarly for the footer.

    Inside and WholePage frames are also added in every case, with the size of Inside determined as the area inside the margins and the header and footer frames.

    A new page number is specified, based on the current page number format and the value of the page number for the previous last page.

    AddPage is only related to the page, when executed FontName, FontSize and other font related properties are reset to the default values (see General Information), thus they must be set or reset directly, or by a calling a sub, after the code AddPage.

    This line of code can also be an ApplyStyle reference.


    To add a page with a footer but no header:

    Preview.AddPage "1.5 in", "0.5 in", "0.75 in", "0.75 in", , "0.5 in"
    or directly in twips:

    Preview.AddPage 1000, 1000, 500, 500, ,1000
    See Also:

    AddFirstPage --------->
    AddPageTemplate ->
    ApplyStyle ------------->

    Come and visit :

    Edited by - emiel on 07/26/2005 16:54:20
    Go to Bottom of Page
      Previous Topic: AddReference - Method Topic Next Topic: SetPrintToFile - 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