简体   繁体   中英

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?

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.

There is EnumForms .

Stephen Friedl has done research on this subject.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM