Line Draw Width

L

Luke Bellamy

Hi - I am using Access 2002 and am using the Report.Line method
to produce some veritcal lines on my report. This all works fine but
but default (and I force it) the unit of measure is twips. As for alot
of the Access measurements.

BUT the Line.DrawWidth property asks for the width in pixels (as per
the VBA help files). This would be OK but of course not all pixels (pixels
per inch)
are the same, so on one computer my vertical lines are as expected
while other monitors show the lines a little differently (and not as neat).

So does anyone know of a better way to handle this?

I have been looking through K. Getz screen resize code and at the moment
my solution is to get the DPI and calculate the pixels as a ratio of the
screen I developed it on. So if the dpi is higher on a client machine than
my dev machine I will have to increase the pixels by the increase in dpi
accordingly.

Any suggestions appreciated?

Thanks,
Luke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top