Print Preview ActiveX Active Users: 24 / Visits Today: 51
Highest Active Users: 99
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
 EndDocument - Function
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: Page - Function Topic Next Topic: OutputFile - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/15/2005 :  15:45:16  Show Profile
Function EndDocument

Action:

This functions allows the selection of the print output destination.

Syntax:

EndDocument (vOutput As OutputType, vPaperBin As PaperBinType) As Boolean

Parameter        Description            
  • vOutput Output destination
  • vPaperBinPaper Output printer output
    The vOutput parameter can contain the following values:
    
    Constant           Value  Description                                              
    
  • prOTPrinter 0 Output is sent directly to the printer without a preview
  • prOTScreen 1 Output is previewed on screen
  • prOTStructured 2 Output is saved as a structured file
  • prOTTextFile 3 Output is saved as a text file
  • prOTRTFFile 4 Output is saved as a Rich Text file
  • prOTHTMLFile 5 Output is saved as a HTML file
  • prOTPrinterDialog 6 Output is sent directly to printer preceded by printer dialog
  • prOTDefault 7 Depends on system
    The range of values that vPaperBin can take.
    
    Constant        Value  Description                      
    
    
  • vbPRBNUpper 1 Use paper from upper bin
  • vbPRBNLower 2 Use paper from lower bin
  • vbPRBNMiddle 3 Use paper from middle bin
  • vbPRBNManual 4 Wait for manual insertion of paper
  • vbPRBNAuto 7 Use paper from current default bin
  • vbPRBNDefault 8 Use paper from current default bin
    Remarks:

    This method is called once all the data for a document has been previewed. The method will either create a Preview window, save the information as a file or send it directly to a printer, depending on the value of vOutput.

    It is for the convenience of the application that both vOutput and vPaperBin may either be set separately or as part of the EndDocment method call.

    If the output is to a file then the OutputFile property must be set first.

    After the completion of the preview operation, the document is deleted and a new document created, with zero margins and no header or footer.

    Example:

    To preview output on screen:

    Preview.EndDocument prOTScreen

    See Also:

    Output -------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=405
    OutputFile -> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=406
    PaperBin ->


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


    Edited by - emiel on 07/20/2005 12:20:00
    Go to Bottom of Page
      Previous Topic: Page - Function Topic Next Topic: OutputFile - Property  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.02