Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
Kevin McFarlane21-May-03 5:09
Kevin McFarlane21-May-03 5:09 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
Nick Seng21-May-03 5:43
Nick Seng21-May-03 5:43 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
Ray Cassick20-May-03 17:32
Ray Cassick20-May-03 17:32 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
Ray Cassick20-May-03 17:34
Ray Cassick20-May-03 17:34 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
Kevin McFarlane21-May-03 0:49
Kevin McFarlane21-May-03 0:49 
GeneralVB and Activex Control Pin
hajer19-May-03 23:16
hajer19-May-03 23:16 
GeneralcdWord Application Pin
Member 35075519-May-03 23:08
Member 35075519-May-03 23:08 
GeneralVB PRINTER OBJECT PROBLEM Pin
Cheickna18-May-03 22:50
Cheickna18-May-03 22:50 
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
GeneralNeed tutor in Seattle Area Pin
Shelia Proby18-May-03 13:43
Shelia Proby18-May-03 13:43 
GeneralTooltips for classes Pin
Damage_Inc17-May-03 4:01
Damage_Inc17-May-03 4:01 
GeneralAdding a button in the controlbox Pin
benamar17-May-03 1:33
benamar17-May-03 1:33 
GeneralRe: Adding a button in the controlbox Pin
jhaga18-May-03 5:06
professionaljhaga18-May-03 5:06 
GeneralLicensing Pin
The Limey15-May-03 12:22
The Limey15-May-03 12:22 
GeneralRe: Licensing Pin
Patrick Lassalle22-May-03 2:26
Patrick Lassalle22-May-03 2:26 
GeneralRe: Licensing Pin
The Limey22-May-03 9:21
The Limey22-May-03 9:21 
GeneralRe: Licensing Pin
Patrick Lassalle22-May-03 9:49
Patrick Lassalle22-May-03 9:49 
GeneralRe: Licensing Pin
The Limey22-May-03 10:29
The Limey22-May-03 10:29 
GeneralRe: Licensing Pin
Patrick Lassalle22-May-03 10:53
Patrick Lassalle22-May-03 10:53 
GeneralRe: Licensing Pin
The Limey22-May-03 11:28
The Limey22-May-03 11:28 
GeneralHamCode needed to keep link active online/offline Pin
john bartram15-May-03 7:41
john bartram15-May-03 7:41 
GeneralVb 6.0, check whether a com object implements an interface, knowing its GUID Pin
Braulio Dez15-May-03 5:05
Braulio Dez15-May-03 5:05 
GeneralRe: Vb 6.0, check whether a com object implements an interface, knowing its GUID Pin
Daniel Turini15-May-03 5:24
Daniel Turini15-May-03 5:24 
GeneralRe: Vb 6.0, check whether a com object implements an interface, knowing its GUID Pin
Braulio Dez15-May-03 6:02
Braulio Dez15-May-03 6:02 
GeneralRe: Vb 6.0, check whether a com object implements an interface, knowing its GUID Pin
Daniel Turini15-May-03 6:07
Daniel Turini15-May-03 6:07 
GeneralRe: Vb 6.0, check whether a com object implements an interface, knowing its GUID Pin
Braulio Dez15-May-03 6:14
Braulio Dez15-May-03 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.