Home|Download|Buy online|Affiliates|Search|Feedback|Site Map|ReviewsUse our online RSS & XML news feeds to get the latest news about our products delivered to your desktop... RSS feed    04.02.2012
Home»BestView preview library»SDK»Exported functions
Find out more how to use BestView...
bvGetPaperTypeByItsSizes

bvGetPaperTypeByItsSizes

The function is used to map width and height of paper to constants declared in wingdi.h file.

BESTVIEWAPI(LONG) bvGetPaperTypeByItsSizes(PAPERSIZETYPE * pPaperSizeType, LONG Width,LONG Height, LONG * pbRotated)

Parameters:

  • pPaperSizeType - pointer to PAPERSIZETYPE structure which will be filled in if an appropriate size is found
  • Width - the width of the paper, in 0.001 mm
  • Height - the height of the paper, in 0.001 mm
  • pbRotated - if the paper has to be rotated the value is set to 1

Return value: nonzero means that the paper size was found, zero - failure.

Warning:

Next types are not detected:

  • DMPAPER_RESERVED_48
  • DMPAPER_RESERVED_49
  • DMPAPER_JENV_KAKU2
  • DMPAPER_JENV_KAKU3
  • DMPAPER_JENV_CHOU3
  • DMPAPER_JENV_CHOU4
  • DMPAPER_JENV_KAKU2_ROTATED
  • DMPAPER_JENV_KAKU3_ROTATED
  • DMPAPER_JENV_CHOU3_ROTATED
  • DMPAPER_JENV_CHOU4_ROTATED
  • DMPAPER_JENV_YOU4
  • DMPAPER_JENV_YOU4_ROTATED
  • DMPAPER_P16K_ROTATED
  • DMPAPER_P32K_ROTATED
  • DMPAPER_P32KBIG_ROTATED
Valid HTML 4.01 Transitional© PVL team, 2004-2012, all rights reserved. This Web site and its entire contents are for personal use only and may not be copied, reproduced, modified, published or distributed in any way,without PVL team's prior written permission.