In Access 2003 I have a multi-column report (3 columns).
I would like to get 1 continuous vertical line from the top of the page to the bottom of the page, between columns 1 and 2 and between columns 2 and 3.
Is there anyway to create this line?
If so, is there any way to print this line only if there would data in the column to the right of the line?
5 8895
The code to dynamically draw Lines in a Report must be placed in the Print() Event of the Report's Detail Section. The following code will draw a Vertical Red Line, 25 Pixels wide, exactly 1000 Pixels from the Left Margin of the Report, spanning the entire Vertical Length of the Report. - Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
-
Dim lngColor As Long
-
-
Me.ScaleMode = 3 'Pixels
-
Me.DrawWidth = 25 'in Pixels
-
-
lngColor = RGB(255, 0, 0) 'Red
-
-
Me.Line (1000, 0)-(1000, Me.ScaleHeight), lngColor
-
End Sub
Thank you! I can now get the lines. I am, however, having a slight problem. I'm getting a slight break in the lines on the report between detail lines and also between groups, so it's not an absolutely solid line.
My report would be:
Allen, Michael
100 Main St.
Anyplace, US
..Allen car1
..Allen car2
Axelrod, Timothy
200 Elm St
Sunrise, US
.. Axelrod car1
.. Axelrod car2
The personal information is in a group header and the cars are in the detail section.
I'm getting slight breaks in the line between Allen car 1 and Allen car 2, between Alexrod car 1 and Axelrod car2, and between Allen Car 2 and Alexrod, Timothy.
Am I doing something wrong, or is there any way to fix this?
Also, the data in the columns are not always the same length because people have different number of cars. The line is only extending down as far as the last detail line, and I understand why, but is there any solution for that?
Thank you.
Thank you! I can now get the lines. I am, however, having a slight problem. I'm getting a slight break in the lines on the report between detail lines and also between groups, so it's not an absolutely solid line.
My report would be:
Allen, Michael
100 Main St.
Anyplace, US
..Allen car1
..Allen car2
Axelrod, Timothy
200 Elm St
Sunrise, US
.. Axelrod car1
.. Axelrod car2
The personal information is in a group header and the cars are in the detail section.
I'm getting slight breaks in the line between Allen car 1 and Allen car 2, between Alexrod car 1 and Axelrod car2, and between Allen Car 2 and Alexrod, Timothy.
Am I doing something wrong, or is there any way to fix this?
Also, the data in the columns are not always the same length because people have different number of cars. The line is only extending down as far as the last detail line, and I understand why, but is there any solution for that?
Thank you.
I would actually have to physically look at the Report and its layout, in order to even venture a guess as to what is causing this.
Thanks. I can't send the report due to the data. I could send the code. I tried this on all my other reports which I am making snaking columns which I could send, and unfortunately (or fortunately) it is working with them. So it definitely helped me on the others. I'll have to keep plugging away on this one. Thank you.
Changing ScaleHeight to Height seemed to solve the problem for me.
I was getting gaps because some fields had CanGrow = true
Sign in to post your reply or Sign up for a free account.
Similar topics
by: intl04 |
last post by:
I have a memo field that is included in some Access reports I created.
Is there some way for the memo field to display nicely formatted text,
with line breaks between paragraphs? Or is it necessary...
|
by: James P. |
last post by:
Help,
In Access 2000, I have a bound column - textbox. As soon as I type
three dots (periods) in the textbox and keep typing (more dots or
anything else), it automatically converts the three...
|
by: (Pete Cresswell) |
last post by:
I've got a situation where the user is expanding nodes in a TreeView and below a
certain level, the child nodes become too numerous for them to deal with easily
on a straight-up sequential list.
...
|
by: cyranoVR |
last post by:
This is the approach I used to automate printing of Microsoft Access
reports to PDF format i.e. unattended and without annoying "Save As..."
dialogs, and - more importantly - without having to use...
|
by: stawicki |
last post by:
I have a report that uses snaking columns to generate four 2.5 inch
columns in landscape mode. It is used to print a double-sided document
whch is then cut down the middle and bound.
The...
|
by: diesel |
last post by:
I have an OWC chart that works great
Our client has requested that we add a vertical line at a specific
point on the chart
For example the horizontal axis contains 2,4,6,8
The vertical line...
|
by: JoeW |
last post by:
I'm utilizing a database that I created within MS Access within a
program I've created in VB.NET. I am using the VB front end to
navigate the information, but want to be able to print a report,...
|
by: ashkaan57 |
last post by:
Hi,
I am trying to put a vertical line between two DIVs that are contianers
for menu and content.
I added another DIV in between them and set the background-image and
repeat-y but it doesn't...
|
by: senort01 |
last post by:
Is it possible to create a table within MS Access Reports so that horizontal data stays aligned?
For example, I have two columns of data. The left column is fixed, the right column will be...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |