PC-DMIS 2021.1 Object Library
SetPrintOptions Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
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
PCDLRN ActiveX DLL > EditWindow Object : SetPrintOptions Method

Glossary Item Box

Description

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
ValueDescription
PCD___OFFNo destination for printed data.
PCD_FILEDestination for the printed data is a file.
PCD_PRINTERDestination for the printed data is printer.
Destination of printed data. Options include Off, File, or Printer
Draft
ValueDescription
DMIS_OFFDoes not print in draft form.
DMIS_ONPrints in draft form.
When destination is printer, specifies if printer should print in draft mode or not. Options include On and Off.
Filemode
ValueDescription
PCD_APPENDAppends information to the end of the file.
PCD_AUTOAutomatically increments a numeric extension for the output file name.
PCD_NEWFILESends information to a new file.
PCD_OVERWRITEOverwrites information in the current file.
PCD_PROMPTPrompts 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

Copyright © 2020. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.