MKI_PRINT_DATA (Basic Classes) Changed in Version 2025.1

www.CAD6.com

C++ Syntax

class MKI_PRINT_DATA

{

  public:

 

  MKI_PRINT_ENTRY m_acData[MKI_PRINTER_MAX];

  __int32 m_nIndex;

  bool m_fUseSection;

  MKI_RECT m_cSection;

  __int32 m_nPolyCount;

  MKI_POINT m_acPolyPoints[MKI_PRINTER_POLYGON_MAX];

 

  MKI_PRINT_DATA( void );

 

  void

  Init( void );

 

  void

  InitDirectPDF(

 const LPCWSTR f_pszFileName,

 __int32 f_nPageType,

 bool f_fLandscape );

};

 

This structure contains all available printer settings.

 

Element Description

m_acData

[MKI_PRINT_ENTRY[]] Settings for each available printer.

m_nIndex

[__int32] Index of the currently active printer. Valid range: 0 <= Value < MKI_PRINTER_MAX.

m_fUseSection

[bool] If true, the rectangular section stated in m_cSection will be printed (or the polygonal section represented by m_acPolyPoints if m_nPolyCount is larger than 2). In this case, the printing mode MKI_PRINTMODE_FRAME is not available. If false, the complete drawing will be printed.

m_cSection

[MKI_RECT] Section to be printed in internal [mm] or surrounding rectangle of the polygon if m_nPolyCount is larger than 2. This frame will only be used if m_fUseFrame is true.

m_nPolyCount New in Version 2018.1

[__int32] Number of valid printing area polygon points in m_acPolyPoints. Will only be used if m_fUseSection is true. Valid range: 0 <= Value < MKI_PRINTER_POLYGON_MAX.

m_acPolyPoints New in Version 2018.1

[MKI_POINT[]] Array of printing area polygon points. These points will only be used if m_fUseSection is true and m_nPolyCount is larger than zero.

 

CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH