PC-Dmis 2010 MR2 Object Library | Send comments on this topic. | See Object Hierarchy Chart
SetPrintOptions Method
See Also

Collapse All Expand All

Location
  Destination of printed data. Options include Off, File, or Printer

Draft
  When destination is printer, specifies if printer should print in draft mode or not. Options include On and Off.

Filemode
  When destination is file, specifies file naming and writing parameters. Options include: Append, New File, Overwrite, and Auto. Auto mode automatically increments a numeric extension for the output file.

ExtNum

# Description

Sets edit window print options

This function allows you to set Edit window print options.

# Syntax

Visual Basic

    Public Sub SetPrintOptions( _
       ByVal Location As PCDPRINTLOC, _
       ByVal Draft As ENUM_PCD_ON_OFF, _
       ByVal Filemode As PCDPRINTFILEMODE, _
       ByVal ExtNum As Long _
    )

# Parameters

Location

  Value | Description
  --- | ---
  PCD___OFF | No destination for printed data.
  PCD_PRINTER | Destination for the printed data is printer.
  PCD_FILE | Destination for the printed data is a file.

  Destination of printed data. Options include Off, File, or Printer
Draft

  Value | Description
  --- | ---
  DMIS_OFF | Does not print in draft form.
  DMIS_ON | Prints in draft form.

  When destination is printer, specifies if printer should print in draft mode or not. Options include On and Off.
Filemode

  Value | Description
  --- | ---
  PCD_APPEND | Appends information to the end of the file.
  PCD_NEWFILE | Sends information to a new file.
  PCD_OVERWRITE | Overwrites information in the current file.
  PCD_AUTO | Automatically increments a numeric extension for the output file name.
  PCD_PROMPT | Prompts the user for a filename.

  When destination is file, specifies file naming and writing parameters. Options include: Append, New File, Overwrite, and Auto. Auto mode automatically increments a numeric extension for the output file.
ExtNum

# Return Type

Number to be used for the file extension of the output file.

# See Also

EditWindow Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.