Print Vertical Line

V

Vensia

Dear all,

I'm using line method to print vertical line in report. Using deskjet
printer to print the report, the line is displayed well, but if I use dot
matrix printer, the line width is too thick.
Please let me know sample code how to use line method in reporting.
Thanks in advance.

Vensia
 
A

Al Campagna

Vensia,
Probably, you won't be able to do anything significant with this problem. The single
wire diameter on a dot matrix is as narrow as you can go.

I'm assuming the vertical line is set in design mode for the narrowest Line/Border
width possible.
You might also try the dot matrix on Low quality to prevent a double strike on the vert
line. Then try it on High quality just to see what the difference is.
Try a | character instead of a vert "line". It may not be a continuous line, but... it
should print thinner in low quality, and still provide the necessary visual separation
between columns.
 
G

Guest

There is a DrawWidth property which determines the width of the drawn line
using the Line method. If this is set to 1 then I don't expect you will get
it much smaller. You could play with setting the DrawStyle to get dotted or
dashed lines.
 
S

Stephen Lebans

Hi Duane,
here is a previous post of mine to aid the OP in understanding this issue.
He will have to use the Printer Object to check the current resolution of
the desired printer in order to set the DrawWidth property accurately.



' *** START ORIGINAL POST
Hi Matthias.
If I remember correctly the DrawWidth property is expressed in output
device Pixels. If Kathy desires a line of two points in width then you
will have to factor in the output device resolution. For example: 72
points per inch(Standard printer scale)
600 DPI output resolution
600/72 = 8 device pixels per printer point


So we would need to set the DrawWidth to 16 to get a 2 Point line width.


Obviously I've rounded 600/72 = 8.33 to 8 as the DrawWidth prop is an
Integer value. Also if accuracy is paramount remember that the output
resolution is never what is listed for the device. For example a laser
printer rated at 600DPI does not mean there are:
600 * 8.5 = 5100 pixels horizontally
600 * 11 = 6600 pixels vertically
on the output page. Most printing devices have a nonprint area, a border
that their print engine cannot image onto. This reduces the effective
output resolution by the amount of this "margin".
' *** END ORIGINAL POST



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
V

Vensia

Dear all,

I try to use the following:

Me.DrawWidth = 10

In deskjet and laserjet printer, the line is printed nicely, but in dot
matrix, the line is very thick.
This application will be used by many kinds of printer.

Actually, I have a report where the line of record can expand more than one
row.
I use vertical line (using line method) to separate the columns.
For columns title, I'm using rectangle and line controls with border width 1
point.
The problem is the line width between the rectangle/line control with the
line (created by line method) are not same.
Hope you can give me solution for this matter.
Thanks.
 

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