开发者

Enumerate Windows Paper Sizes

开发者 https://www.devze.com 2023-03-20 12:32 出处:网络
I can get the current Locale paper size using GetLocaleStr(LCID,LOCALE_IPAPERSIZE,IntToStr(DMPAPER_A4))

I can get the current Locale paper size using

GetLocaleStr(LCID,LOCALE_IPAPERSIZE,IntToStr(DMPAPER_A4))

where LOCALE_IPAPERSIZE = $100A

but 开发者_Python百科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.

0

精彩评论

暂无评论...
验证码 换一张
取 消