Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2023.1 Object Library
PCDLRN ActiveX DLL > EditWindow Object : SetPrintOptionsEx Method
Destination of printed data. Options include Off (PCD___OFF), File (PCD_FILE), or Printer (PCD_PRINTER)
When destination is printer, specifies if printer should print in draft mode or not. Options include On (DMIS_ON) and Off (DMIS_OFF).
When the Location is set to PCD_FILE, this specifies file naming and writing parameters. Options include: Append (PDF_APPEND), New File (PCD_NEWFILE), Overwrite (PCD_OVERWRITE), and Auto (PCD_AUTO). Auto mode automatically increments a numeric extension for the output file.
Number to be used for the file extension of the output file.
If PCD_FILE is selected for the Location parameter, this string value identifies the filename and path for the created file.
If PCD_FILE is selected for the Location parameter, the Format parameter specifies the file format for the saved file. You can print the Edit window contents to a file in either the RTF (PCD_RTF) format or the PDF (PCD_PDF) format.
If PCD_PDF is selected for the Format parameter, this True or False parameter determines whether or not data from inline HyperView commands appear in the PDF generated file.
SetPrintOptionsEx Method
Description

This function allows you to set extended Edit window print options.

Syntax
Visual Basic
Public Sub SetPrintOptionsEx( _
   ByVal Location As PCDPRINTLOC, _
   ByVal Draft As ENUM_PCD_ON_OFF, _
   ByVal Filemode As PCDPRINTFILEMODE, _
   ByVal ExtNum As Long, _
   ByVal FileName As String, _
   ByVal format As PCDFILEPRINTFORMAT, _
   ByVal bHyperReportsInline As Boolean _
) 
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 (PCD___OFF), File (PCD_FILE), or Printer (PCD_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 (DMIS_ON) and Off (DMIS_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 the Location is set to PCD_FILE, this specifies file naming and writing parameters. Options include: Append (PDF_APPEND), New File (PCD_NEWFILE), Overwrite (PCD_OVERWRITE), and Auto (PCD_AUTO). Auto mode automatically increments a numeric extension for the output file.
ExtNum
Number to be used for the file extension of the output file.
FileName
If PCD_FILE is selected for the Location parameter, this string value identifies the filename and path for the created file.
format
ValueDescription
PCD_3DPDF 
PCD_PDFWrites information to a PDF file.
PCD_RTFWrites information to an RTF file.
PCD_TXT 
If PCD_FILE is selected for the Location parameter, the Format parameter specifies the file format for the saved file. You can print the Edit window contents to a file in either the RTF (PCD_RTF) format or the PDF (PCD_PDF) format.
bHyperReportsInline
If PCD_PDF is selected for the Format parameter, this True or False parameter determines whether or not data from inline HyperView commands appear in the PDF generated file.
See Also