1. using setPenPosition

I was recently experimenting with printing to various locations using 
setPenPosition(Printer,x,y).  Through trial and error I found the set of 
coordinates(4760,6160) that would print at the lower right corner of the 
81/2 X 11 page. When I sent the program to my brother, he got nothing on 
the page until cut the cooridinates in half. (2380,3080).  I was using 
18pt type.  I have a HP OfficeJet145 and he has a HP930C.  We both have 
WinXP Home.  It appears that all settings are the same.  What am I 
missing here?  Why won't it print at the same spot that it does on my 
printer?

new topic     » topic index » view message » categorize

2. Re: using setPenPosition

> What am I missing here?  Why won't it print at the same spot that it does
on my
> printer?

Different printers have different pixel ( dot ) resolutions. Check out
getCtlSize(), which can return the x and y 'page' range of a printer.
No 'trial and error' required   ;)

new topic     » goto parent     » topic index » view message » categorize

3. Re: using setPenPosition

----- Original Message ----- 
From: "Ron Austin" <ronaustin at alltel.net>
To: <EUforum at topica.com>
Subject: RE: using setPenPosition


[snip]

>  By the way, when my brother 
> > cut out the sample code and tried it, it wouldn't work and then he 
> > noticed that the second quote mark was missing from the example in the 
> > Win32Lib documentation.
> 

Thanks. I've fixed this now.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu