Retrieves information about a paper size specified by its name.
GetPaperInfo(pDevMode As Long, szPaperName As String, lWidth As Integer, lHeight as Integer, lUnit as Integer) As Integer
Input value pDevMode:
Pointer to the BlackIceDEVMODE structure of the printer.
Input value szPaperName:
Name of the existing paper size.
Output value szNewPaperName:
Name of the paper size.
Output value lWidth:
Width of the new paper size. The lUnit parameter specifies the units.
Output value lHeight:
Height of the new paper size. The lUnit parameter specifies the units.
Output value lUnit:
Specifies the units of lWidth and lHeight, can be one of the following values:
0: hundredths of inches
1: teths of millimeters
2: pixels
Return value:
On success: The windows paper code of the specified paper that can be used with the SetPaperSize function.
The function returns 0, if an error happens or the paper with the given name does not exist.
NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.