473,387 Members | 3,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Drawing lines on a report

5
I've got the following to draw a vertical line on each control followed by a rectangle around the Details section in a report.

What I cannot seem to find in Access VBA Help is how to set the thickness of the lines in this instance using VBA. I want to set the thickness at 1pt.

Can anyone suggest a way of doing this please?

Expand|Select|Wrap|Line Numbers
  1. ' This is the spacing between the right edge of the
  2. ' control and the Vertical Separation Line
  3. intLineMargin = 0
  4. ' draw a vertical line to separate each field
  5. ' for each control in details control
  6. For Each CtlDetail In Me.Section(acDetail).Controls
  7.     With CtlDetail
  8.         Me.Line ((.Left + .Width + intLineMargin), 0)-(.Left + .Width + _
  9. intLineMargin, Me.Height), RGB(0, 0, 0)
  10.     End With
  11. Next
  12.         'Draw a box around the Detail section
  13.     With Me
  14.         Me.Line (0, 0)-Step(.Width, .Height), RGB(0, 0, 0), B
  15.     End With
  16. Set CtlDetail = Nothing
  17.  
Roderick
Nov 13 '07 #1
1 7773
FishVal
2,653 Expert 2GB
Hi, Roderick.

Read Access help topic thoroughly.

................
The width of the line drawn depends on the DrawWidth property setting. The way a line or rectangle is drawn on the background depends on the settings of the DrawMode and DrawStyle properties.
................
Nov 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kathy | last post by:
Hi and Thanks for you help! Several years ago I created a Product Specification db that displayed AutoCad 2000 drawings in a report (The Spec Sheet) Recently we upgraded our AutoCad to the 2004...
5
by: taccea | last post by:
I have data for an insurance (HCFA) i'm printing. I need to draw the undelying lines on the entire page, then overlay the data on it. How do I do this? Any suggestions appreciated. Taccea
20
by: Greg | last post by:
I'm fairly new to access (using 2002) and am setting up a DB for work. along with each record the user also needs to make a flow diagram (previously, these reports were composed in word and they...
1
by: James Beswick | last post by:
I want to do some primitive graphics work - drawing circles, squares, lines and enable the user to manipulate these on an Access form. All the drawing methods are on the report object so are there...
2
by: George | last post by:
Dear colleagues, I refer to your help with specific graphic problem. It is necessary to create a viewfinder in graphic application. It seems that the algorithm is simple: just draw lines in...
9
by: davetelling | last post by:
I am not a programmer, I'm an engineer trying to make an interface to a product I'm designing. I have used C# to make a form that interrogates the unit via the serial port and receives the data. I...
4
by: Galen Somerville | last post by:
My VB2005 app gets real time Heart sounds and an ECG from a USB device. I'm looking for a way to speed up the drawing of the traces on the screen. In the following code the routine GetSounds...
7
by: ddecoste | last post by:
I have a need to add a visual representation to some data in Access. I need to draw a matix of squares inside another square. I have all the data that I need in a record in Access. The data...
4
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've windows form, in this form i've a panel. I want to draw lines inside the panel using the panel coordinates( meaing that the left upper corner of the panel is 0,0), how can i do it? ...
1
by: YouPoP | last post by:
I am doing an app (C# 2.0) where you can draw in a panel with your mouse in "real time". I actually have 2 problems; 1- it does not really is "real time", if your mouse move fast or very fast the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.