3

I can get the current Locale paper size using

GetLocaleStr(LCID,LOCALE_IPAPERSIZE,IntToStr(DMPAPER_A4))

where LOCALE_IPAPERSIZE = $100A

but is there a way to enumerate all paper sizes with their names?

James
  • 9,774
  • 5
  • 34
  • 58

2 Answers2

3

There's no enumerator, see Paper Sizes on MSDN for a full list.

You can find out paper sizes that a particular installed printer supports, but that wouldn't possibly include all.

Sertac Akyuz
  • 54,131
  • 4
  • 102
  • 169
1

There is EnumForms.

Stephen Friedl has done research on this subject.

Premature Optimization
  • 1,917
  • 1
  • 15
  • 24