Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form1.print

Status
Not open for further replies.

rann

Programmer
Sep 13, 2001
86
US
Hi,
I printing Text on a form using two methods.

For Example:
1)frmMain.CurrentX = 78.28
frmMain.CurrentY = -2.136
frmMain.Print "hello"

2) In the second method i used a Textout API Method

TextOut(hPrintDc, 78.28, -2.136, "hello", Len("hello"))

Why does "hello" print in two different location on the form.
Even though i used the same X=78.28 and Y=-136 cordinates in
both the methods.

Any help would be appreciated,

Thanks in Advance,

Rann

 
Probably because the API call uses one scalemode, and your form uses a different one. I'm not sure which one the API uses ( pixels ? ), but I'm pretty sure that's why you are getting two different results.

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top