How to draw a Dot Line in report

G

Guest

I am trying to draw a line by the following code :

Private Sub Report_Page()
Me.Line (0, 2880)-Step(8640, 0)
End Sub

The code is working fine But My requirement is to draw a line in Dot style
(I mean manually if we draw a line we can set in properties Dailog - Border
Style - Dot).

Please advise me what additional code I should add to get my above line
drawn a Dot Line.

Regards.

Irshad
 
F

fredg

I am trying to draw a line by the following code :

Private Sub Report_Page()
Me.Line (0, 2880)-Step(8640, 0)
End Sub

The code is working fine But My requirement is to draw a line in Dot style
(I mean manually if we draw a line we can set in properties Dailog - Border
Style - Dot).

Please advise me what additional code I should add to get my above line
drawn a Dot Line.

Regards.

Irshad

Look up the DrawStyle property in VBA help.

Me.DrawStyle = 2
Me.DrawWidth = 1
.......
Me.Line(etc...)
 
G

Guest

Thank your for your help.

I tried its working about 90%. Its ok.
I can manage.

Regards

Irshad
 

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