Returns the paper ID, a number (datatype Long) that represents a page size such as A4 or "letter". This is the printer driver's internal equivalent of the PageSetup.PaperName property.
The PageSetup.PaperID property returns a unique identification for the paper stock in use. The available paper sizes and their corresponding ID numbers are defined in the file wingdi.h included with the Windows SDK.