473,602 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Vertical lines not printing or exporting...

I have been trying to get vertical lines to work in a report using VBA
code as suggested by Microsoft here:
http://support.microsoft.com/kb/q151543/ (except I replaced Microsoft's
default line values with my own):

Private Sub Report_Open(Can cel as Integer)
DoCmd.Maximize
End Sub
Private Sub Report_Close()
DoCmd.Restore
End Sub

Private Sub Report_Page()

If Me.Page <1 then

Me.ScaleMode = 1
Me.ForeColor = 0
' Repeat the following line of code for each vertical
line.
' 1 * 1440 represents 1 inch.
' Draws line at Left Margin.
Me.Line (0 * 1440, 0) - (0 * 1440, 14400)
' Draws line at 1 inch.
Me.Line (1 * 1440, 0) - (1 * 1440, 14400)
' Draws line at 2 in.
Me.Line (1.9 * 1440, 0) - (1.9 * 1440, 14400)
' Draws line at 3 in.
Me.Line (5.5 * 1440, 0) - (5.5 * 1440, 14400)

End If

' The 14400 is an arbitrary number to increase the line to the
max
' of a section.
End Sub
Private Sub Detail_Print(Ca ncel as Integer, PrintCount as Integer)
Me.ScaleMode = 1
Me.ForeColor = 0
' Repeat the following line of code for each vertical line
' 1 * 1440 represents 1 inch.
Me.Line (0 * 1440, 0) - (0 * 1440, 14400)
Me.Line (1 * 1440, 0) - (1 * 1440, 14400)
Me.Line (1.9 * 1440, 0) - (1.9 * 1440, 14400)
Me.Line (5.5 * 1440, 0) - (5.5 * 1440, 14400)

' The 14400 is an arbitrary number to increase the line
' to the max of a section.
End Sub

The lines show up in the print preview and look great, but they don't
print and when I export the report to PDF or Word, the lines dissapear
there too. Is there a way to fix this?

Jul 6 '06 #1
3 2706
Try increasing the line thickness slightly.

For example ....

Me.Line (0, 0) - (2, 14400), vbBlack, BF
Me.Line (1440, 0) - (1442, 14400), vbRed, BF
Me.Line (2880, 0) - (2882, 14400), vbBlue, BF

This should fix the print and pdf, but unsure about word.

Regards,
Kevin Rollo
Western Australia
"CatMarieS" <Sp************ @gmail.comwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.com.. .
I have been trying to get vertical lines to work in a report using VBA
code as suggested by Microsoft here:
http://support.microsoft.com/kb/q151543/ (except I replaced Microsoft's
default line values with my own):

Private Sub Report_Open(Can cel as Integer)
DoCmd.Maximize
End Sub
Private Sub Report_Close()
DoCmd.Restore
End Sub

Private Sub Report_Page()

If Me.Page <1 then

Me.ScaleMode = 1
Me.ForeColor = 0
' Repeat the following line of code for each vertical
line.
' 1 * 1440 represents 1 inch.
' Draws line at Left Margin.
Me.Line (0 * 1440, 0) - (0 * 1440, 14400)
' Draws line at 1 inch.
Me.Line (1 * 1440, 0) - (1 * 1440, 14400)
' Draws line at 2 in.
Me.Line (1.9 * 1440, 0) - (1.9 * 1440, 14400)
' Draws line at 3 in.
Me.Line (5.5 * 1440, 0) - (5.5 * 1440, 14400)

End If

' The 14400 is an arbitrary number to increase the line to the
max
' of a section.
End Sub
Private Sub Detail_Print(Ca ncel as Integer, PrintCount as Integer)
Me.ScaleMode = 1
Me.ForeColor = 0
' Repeat the following line of code for each vertical line
' 1 * 1440 represents 1 inch.
Me.Line (0 * 1440, 0) - (0 * 1440, 14400)
Me.Line (1 * 1440, 0) - (1 * 1440, 14400)
Me.Line (1.9 * 1440, 0) - (1.9 * 1440, 14400)
Me.Line (5.5 * 1440, 0) - (5.5 * 1440, 14400)

' The 14400 is an arbitrary number to increase the line
' to the max of a section.
End Sub

The lines show up in the print preview and look great, but they don't
print and when I export the report to PDF or Word, the lines dissapear
there too. Is there a way to fix this?
Jul 8 '06 #2
"Kevin Rollo" <kr*******@hotm ail.comwrote in
news:44******** *************** @per-qv1-newsreader-01.iinet.net.au :
The lines show up in the print preview and look great, but they
don't print and when I export the report to PDF or Word, the lines
dissapear there too. Is there a way to fix this?
The RTF export to Word does not include any of the lines or boxes in
the report. This has basically made me consider the RTF export
worthless.

Printing to PDF directly from Access ought to get them, though.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 8 '06 #3
With care, the RTF export can be used as a mail merge source
in Word, which may be it's only value.

It's not uncommon for PDF to loose lines: some of the pdf
printers seem to have the same problem as Lebans found when
he started the snapshot to pdf converter.

It used to be common for printers to loose lines and boxes,
because they were handled as special cases: they are
graphics that can be represented as characters. It's possible
that some PDF printers or converters just have bugs in the
line handling.

(david)

"David W. Fenton" <XX*******@dfen ton.com.invalid wrote in message
news:Xn******** *************** ***********@127 .0.0.1...
"Kevin Rollo" <kr*******@hotm ail.comwrote in
news:44******** *************** @per-qv1-newsreader-01.iinet.net.au :
>The lines show up in the print preview and look great, but they
don't print and when I export the report to PDF or Word, the lines
dissapear there too. Is there a way to fix this?

The RTF export to Word does not include any of the lines or boxes in
the report. This has basically made me consider the RTF export
worthless.

Printing to PDF directly from Access ought to get them, though.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/

Jul 10 '06 #4

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

Similar topics

1
7892
by: Kenneth | last post by:
Okay, I've been scouring Google for hours looking for a solution to this problem, but as of yet I can't find one. XHTML Transitional seems to specify that I can no longer set a table's height to 100% and vertically center content inside of it. Therefore, I'm seeking a way, preferably in CSS to vertically center a site. Here's more of a visual to what I have: /********************************
10
2925
by: John Baker | last post by:
Hi: I have a user who has labels that are set up 3 across and 11 vertical (which is unusual at best), and he wants me to print names and addresses on them. I have already set up for labels 10 vertical and 3 across (Avery 5160)which are another standard the user has, but can't find any in the setup for labels that show 11 vertical. I am therefore using the Avery 5160 as a start, and modifying the top and bottom margins (the margins on the...
0
1113
by: DraguVaso | last post by:
Hi, I'm having a DataGrid on which I want to draw 2 moveable vertical lines. What should happen is: When I move a vertical line, I have somewhere an indication on which character in the datagrid it is put. So if I place a vertical line between the 10th and 11th character in the rows in my datagrid I want to have somewhere next to the vertical line the number "10". Anybody knows how to do this easily?
2
12134
by: Eric Lindsay | last post by:
If I want to have the middle of an image vertically aligned with the middle of a heading (or several lines of heading), is there some particular way people would recommend? vertical-align: center looked made for that. The effect I want is img heading img heading img heading or heading
1
1484
by: tminihan | last post by:
I have a report that pulls it's information from a text file. I have the report (Invoice) set up to print some of it in vertical and some of it in portrait. Problem: the verticle won't select the courier new font. It defaults to a font (which I don't know). The portrait uses Courier New. Does anyone know if there is a known issue with printing Courier New in verticle in Access 2003? It works in Access 2002.
3
4412
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%; min-height:100%; } body{ vertical-align:middle;
3
5157
by: Spiros Bousbouras | last post by:
The fact that vertical tab and form feed exist both in the basic source character set and the basic execution character set suggests to me that there is a class of display devices where vertical tab and form feed produce a predictable and consistent (among different devices) behaviour. So what are these devices and what is the behaviour ? For old printers , form feed presumably moves to the next page but vertical tab is a mystery to me.
1
3074
by: mailjaneen | last post by:
Hello, can someone help me. I want to display some fields on a report in print preview (i.e. instructions), that I don't want to print to the printer or export to file. I can't seem to find any way of telling that the report is displaying in print preview, vs. being actually printed or emailed/ exported. So for example when previewing, I'd do Me!.Visible = True.
40
5469
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this: http://htmlhelp.com/reference/css/text/vertical-align.html
0
7993
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
7920
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
8401
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
8404
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...
1
8054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6730
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...
1
5867
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.