Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
80
SHEET
79
3.60.BiESCNGetDocumentSize
[Function]
Acquire the values of documentWidth and documentHeight.
[Format]
int BiESCNGetDocumentSize(int nHandle, LPWORD pDocumentWidth,
LPWORD pDocumentHeight);
[Argument]
int nHandle
Select a printer handle value. Specify a return value of BiOpenMonPrinter() to the handle value.
LPWORD pDocumentWidth
Select a memory address to set a value of the width of the image data (unit: 0.1 mm).
LPWORD pDocumentHeight
Select a memory address to set a value of the height of the image data (unit: 0.1 mm).
[Return value]
SUCCESS(0) is returned if the execution is successful. If an error occurs, one of the following error codes (negative value)
is returned:
ERR_HANDLE(-60) The handle value that selects the printer is incorrect.
ERR_PARAM(-90) Parameter error.
ERR_NOT_SUPPORT(-100) Not supported.
[Explanation]
Acquire the values of documentWidth and documentHeight (the width and height of the image data saved in the WORK
AREA) by using the unit of 0.1 mm.
[Note]
The unit of the argument is 0.1 mm.
If automatic update by reading the image data or a change with BiESCNSetDocumentSize() is not executed, the
default value (width=680, height=1520) is acquired.
[Supported printer]
TM-H6000II with Image Scanner