-
I use the following API:
Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long
For x and y you must write some values in pixel. However, are they on every printer the same or do they depend on the solution of every printer ? And does anybody know how many
pixels are one cm ?
Thanks a lot for help,
Thomas
-
If you are printing using VB's Printer object, then just set the ScaleMode to pixels.
BTW: 1 cm = 567 twips
1 cm = approx. 38-39 pixels