Guys,
What function to use to get the current paper type/size and later on restore it?
TIA
BCC5.82/BCC7.3
xHarbour/Harbour
Guys,
What function to use to get the current paper type/size and later on restore it?
TIA
Hua,
This info from my notes may help.
Regards,
James
oPrinter:setSize( nWidth, nHeight )
Where nWidth and nHeight are in tenths of a millimeter.
25.4 millimeters per inch
So to set the size in inches
oPrinter:setSize( 254 * nWidth, 254 * nHeight)
Where nWidth and nHeight are in inches.
oPrinter:GetPhySize()
An array with the dimensions of the paper: {nHeight ,Width}
Units of height and width are not given in the help file.
Thanks for the reply James. I found those 2 and had tried using them but couldn't get them to work properly as I'm not sure how to correctly convert the values returned by oPrinter:GetPhySize()
Hua,
Well what paper size is the printer set for and what is oPrinter:GetPhySize() returning?
James