how to get the paper name
-
recently, i worked on printing program. can anyone help me how to get the name of a system pre-defined paper? such as : value 1 return Letter (8.5 x 11 in.) thanks
I think that may be a problem of the printer driver rather than the problem of the system. I don't know it exactly, but the paper size is defined in the DEVMODE printer struct (member: dmPaperSize). But here the definiton is only per number (symbolic constant). So I think the printer driver does the mapping from those numbers to the string which is visible in the windows common printer dialog!
-
I think that may be a problem of the printer driver rather than the problem of the system. I don't know it exactly, but the paper size is defined in the DEVMODE printer struct (member: dmPaperSize). But here the definiton is only per number (symbolic constant). So I think the printer driver does the mapping from those numbers to the string which is visible in the windows common printer dialog!
-
recently, i worked on printing program. can anyone help me how to get the name of a system pre-defined paper? such as : value 1 return Letter (8.5 x 11 in.) thanks
Look up DeviceCapabilities specifing DC_PAPERNAMES Joel Lucsy
-
Look up DeviceCapabilities specifing DC_PAPERNAMES Joel Lucsy