本文介绍了枚举Windows纸张大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用获取当前的区域设置纸张尺寸
I can get the current Locale paper size using
GetLocaleStr(LCID,LOCALE_IPAPERSIZE,IntToStr(DMPAPER_A4))
其中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.
这篇关于枚举Windows纸张大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!