473,792 Members | 2,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Empty Rows on Report

I found some code that works great to creat empty rows of boxes on a
report from the end of the data to the bottom of the report. Now, I
can't seem to find the original message to post a question on that
thread.

The code is as follows.
In the Report OnFormat section the [Event Procedure] I use the
following.

Private Sub Report_Page()
Dim intBox As Integer
Dim intRow As Integer
Dim ctrl As Rectangle
Dim lngDetTop As Long
Dim lngDetHeight As Long
lngDetTop = Me.Section(5).H eight
lngDetHeight = Me.Section(0).H eight
For intBox = 0 to 11
For intRow = 0 to 31
Set ctrl = Me("box" & intBox)
Me.Line (ctrl.Left, lngDetTop + intRow * lngDetHeight)- _
Step(ctrl.Width , ctrl.Height), , B
Next
Next
End Sub

The problem is that inorder to print nicely all the lines on the report
need to be 1 pt. vs. Hairline. The above prints as hairline. How can I
change it to make the default line 1pt.

I have seen in some of the other post that everyone is saying to use
DrawWidth, but I have not seen how to make this work.

Any help would be appreciated.

Terragrub

Nov 13 '05 #1
3 2163
Private Sub cmdPlayWithLine _Click()
Dim ctlLine As Line
Set ctlLine = Me.Line4

With ctlLine
.BorderColor = vbRed
.BorderWidth = 1
End With
End Sub

Nov 13 '05 #2
Private Sub cmdPlayWithLine _Click()
Dim ctlLine As Line
Set ctlLine = Me.Line4

With ctlLine
.BorderColor = vbRed
.BorderWidth = 1
End With
End Sub

Nov 13 '05 #3
Okay, I see the code you supplied and it looks good, but I'm not a VB
literate yet. Where would this code have to go to work?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4874
by: nephish | last post by:
Hey there, i have a simple database query that returns as a tuple the number of rows that the query selected. kinda like this >>> cursor.execute('select value from table where autoinc > 234') >>> x = cursor.fetchall() >>> print x >>> 21L
3
3724
by: grlgeek | last post by:
I have a report for creating the switchboard labels for our phone system receptionist switchboard. The template has 12 records per column. I setup a report that will create the labels and put a dotted line around them so the receptionist can easily cut them out. The report is setup with columns so that 6 columns fit across a page. 12 records per column, 6 columns across a page, each record has a dotted line around the box. The...
22
4236
by: EMW | last post by:
Hi, I managed to create a SQL server database and a table in it. The table is empty and that brings me to my next chalenge: How can I get the info in the table in the dataset to go in an empty SQL table? Is there a short way like the FILL method to get data into the dataset or do I have to read each datarow in the table and write it one at the time to the
0
1156
by: jaykchan | last post by:
I am looking for a control that allows our users to expand and collapse rows in a report. Currently, the report is being shown in a web page generated from a CGI script. Unfortunately, the report is huge, and the user cannot expand and collapse the rows in the report. This means loading that large amount of data into the web browser takes a long time, and sometimes the report has so much data that it crashes the browser. Moreover, our...
0
25061
ADezii
by: ADezii | last post by:
When you create a Recordset, you may want to know immediately whether that Recordset actually contains any Rows. There are Recordsets that don't return any Rows and you may need to take different steps based on this outcome. There are basically 3 Methods for testing for an Empty Recordset (Recordset that returns no Rows). We will be using DAO, but these Methods are equally applicable to ADO. 'Common Code Block Dim MyDB As DAO.Database, MyRS As...
1
5410
by: anon3803 | last post by:
I have a report in Access that has a lot of grouping (sometimes over 5 group headers). When I export it to Excel where more people can use it and are familiar it creates a lot of blank rows when there's nothing inside the group. Certain items in the report will have items in all 5 group headers/levels, most will not. I have a macro in Excel that deletes the blank rows but some reports are too long to export to Excel because of the blank rows....
1
3061
by: brsawvel | last post by:
Hello, I have a form with text/combo boxes that draws from a query and sends records to a report. The query has the following code in the criteria block of some of the columns: !! This code tells the query to select only those records that match what was entered or selected in the pertinent text/combo box in the "report" form. So the SQL appears as follows: SELECT tbl.fld1, tbl1.fld2, tbl1.fld3,...
7
2565
by: olseni | last post by:
Hi all I hope someone can help me with this. I am sure there is a solution, but I cannot seem to find it.... I need to make a report with the following format: In the columns I have 5 samples, so sample 1, sample 2 etc. In the rows I have different informationtypes for each sample, and the rows have different formats, e.g. Start date (date format), Weight (number with 1 decimal), and other information using different formats like %,...
4
4333
by: gagnonconsulting | last post by:
Hi, This is driving me crazy, but I am sure I am missing something simple. I have built an Access 2007 report that shows 2 rows of sales data from each of a bunch of store locations. My table has the date, the location and the sales_amount. I need to have my report group on locations. The resulting rows include a date and the sales_amount, and I have been able to display the sales_amount for a requested date (through a parameter query) and the...
0
9670
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10430
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2917
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.