James
James

Reputation: 9975

Enumerate Windows Paper Sizes

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?

Upvotes: 3

Views: 1217

Answers (2)

Premature Optimization
Premature Optimization

Reputation: 1938

There is EnumForms.

Stephen Friedl has done research on this subject.

Upvotes: 1

Sertac Akyuz
Sertac Akyuz

Reputation: 54802

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.

Upvotes: 3

Related Questions