MKI_PRINT_DEVICE (Basic Classes) Changed in Version 2025.1

www.CAD6.com

C++ Syntax

class MKI_PRINT_DEVICE

{

  public:

 

  MKI_STR16W m_szShortName;

  MKI_FILEREFERENCE m_szDeviceName,

                    m_szDevicePort,

                    m_szDeviceDriver;

  MKI_COMMENTLONG m_szComment;

  MKI_FILENAMEW m_szOutputPath,

                m_szOutputFile;

  __int32 m_nOutputMode,

          m_nHideFlags,

          m_nType;

  MKI_PRINT_PDF m_cPrintDirectPDF,

                m_cPrintCAD6PDF;

 

  void

  Init( void );

 

  void

  InitPDF(

 const LPCWSTR f_pszFileName ); New in Version 2025.1

};

 

This structure contains the device parameters for one printer.

 

Element Description

ShortName Changed in Version 2019.1

[MKI_STR16W] Short description of the printer as shown in the printing dialog window's tabs.

DeviceName Changed in Version 2019.1

[MKI_FILEREFERENCE] Name of the device.

DevicePort Changed in Version 2019.1

[MKI_FILEREFERENCE] Port of the device.

DeviceDriver Changed in Version 2019.1

[MKI_FILEREFERENCE] Name of the printer driver.

Comment Changed in Version 2019.1

[MKI_COMMENTLONG] Comment on this device.

OutputPath Changed in Version 2019.1

[MKI_FILENAMEW] Preset output path for output modes that use paths.

OutputFile Changed in Version 2019.1

[MKI_FILENAMEW] Preset output file name for output modes that use file names.

OutputMode

[__int32] File output mode for this device (see MKI_PRINTOUTPUT_*).

HideFlags New in Version 2012.0

[__int32] Flags indicating which layers/pens shall not be output to this device. The value is a bit-wise OR combination of the following values:

MKI_LAYERMODE_FLAG1 / MKI_PENMODE_FLAG1

If flag 1 of a layer or pen is set, it will not be output to this device.

MKI_LAYERMODE_FLAG2 / MKI_PENMODE_FLAG2

If flag 2 of a layer or pen is set, it will not be output to this device.

MKI_LAYERMODE_FLAG3 / MKI_PENMODE_FLAG3

If flag 3 of a layer or pen is set, it will not be output to this device.

MKI_LAYERMODE_FLAG4 / MKI_PENMODE_FLAG4

If flag 4 of a layer or pen is set, it will not be output to this device.

Type New in Version 6.60

[__int32] Type of the output device (see MKI_PRINTERTYPE_*).

PrintDirectPDF New in Version 2025.0

[MKI_PRINT_PDF] Preset data for DirectPDF printer output.

PrintCAD6PDF Renamed in Version 2025.0

[MKI_PRINT_PDF] Preset data for CAD6PDF printer output.

 

CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH