VB PRINTER OBJECT PROBLEM
-
Hi Every body I want to use VB object printer to print some informations exactly at a position (x, y) on paper. I understand each printer has its own idea of what the printable area of the paper is. Therefore i use Windows API to check left and top margin before sending data to printer. I retrieve theses informations like this : MarginLeft = GetDeviceCaps(Printer.hdc, PHYSICALOFFSETX) MarginTop = GetDeviceCaps(Printer.hdc, PHYSICALOFFSETY) With my own printer MarginLeft = 42 pixels ( 2.96666 mm ) idem for MarginTop Now, i tried to print a dot (.) at position (0,0) like this, just to check: Printer.CurrentX=0 Printer.CurrentY=0 Printer.print "." On my paper (A4) i obtain this result with ruler : Left Margin = 2.9666 mm (~ 3 mm) BUT Top margin ~ 6 mm. I dont understand why Top margin is 6 mm insted of 3 Is there any way to know where come this more 3 mm ? Is there any way to set to force printer Unprintable area ? Thanks in advance Cheickna