LotusScript to C API Programming Guide
rtLib Domino Rich Text Management template
Home

Anonymous

login


 

Hosted by Prominic.NET, Inc.

PRINT_SETTINGS

#include <editods.h>

Print Settings

C definition

typedef struct {
  WORD Flags;
#ifdef LITTLE_ENDIAN_ORDER
  #define PS_Initialized     0x0001  /* Print settings have been initialized */
  #define PS_HeaderFooterOnFirst 0x0002  /* Print header/footer on first page */
  #define PS_CropMarks     0x0004  /* Print crop marks */
  #define PS_ChangeBin     0x0008  /* Paper source should be set for 1st & Other Pg. */
  #define PS_HeaderFooterRTL   0x0010  /* Paper source should be set for 1st & Other Pg. */
  #define PS_ReleaseRightMargin 0x0020  /* Release the right margin when printing (to print into gutter) */
#else
  #define PS_Initialized     0x8000
  #define PS_HeaderFooterOnFirst 0x4000
  #define PS_CropMarks     0x2000
  #define PS_ChangeBin     0x1000
  #define PS_HeaderFooterRTL   0x0800  /* Paper source should be set for 1st & Other Pg. */
  #define PS_ReleaseRightMargin 0x0400  /* Release the right margin when printing (to print into gutter) */
#endif

  WORD StartingPageNum;    /* Starting page number */
  WORD TopMargin;      /* Height between main body & top of page (TWIPS) */
  WORD BottomMargin;    /* Height between main body & bottom of page (TWIPS) */
  WORD ExtraLeftMargin;    /* Extra left margin width (TWIPS) */
            /* (beyond whats already specified in document) */
  WORD ExtraRightMargin;    /* Extra right margin width (TWIPS) */
            /* (beyond whats already specified in document) */
  WORD HeaderMargin;    /* Height between header & top of page (TWIPS) */
  WORD FooterMargin;    /* Height between footer & bottom of page (TWIPS) */
  WORD PageWidth;      /* Page width override (TWIPS) */
            /* (0 = "use printer's page width") */
  WORD PageHeight;      /* Page height override (TWIPS) */
            /* (0 = "use printer's page height") */
  WORD BinFirstPage;
  WORD BinOtherPage;
  WORD PageOrientation;    /* New in R6. 0 = undefined, 1 = Portrait, 2 = Landscape */
  WORD wSpare;      /* Spare word */
  DWORD spare[2];      /* (spare dwords) */
  } PRINT_SETTINGS;