473,395 Members | 1,999 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,395 software developers and data experts.

printing in all black when report has some color

how can i get my report to print all in black when i have a control with
conditional formatting to change the font color about 10% of the time it
shows up. i've been trying to find a way to format the onprint event in the
detail section but i can only change the font size, bold/itialic, etc.. any
ideas?

--
Greg

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200603/1
Mar 27 '06 #1
5 5442
"ka******@comcast.net via AccessMonster.com" <u15580@uwe> wrote in
news:5de46fe25b6fa@uwe:
how can i get my report to print all in black when i have a control
with conditional formatting to change the font color about 10% of the
time it shows up. i've been trying to find a way to format the
onprint event in the detail section but i can only change the font
size, bold/itialic, etc.. any ideas?


When I want black only I send the report to a black only printer. When I
want color I send it to a color printer. Has worked every time so far!

--
Lyle Fairfield
Mar 27 '06 #2
ka******@comcast.net via AccessMonster.com wrote:
how can i get my report to print all in black when i have a control with
conditional formatting to change the font color about 10% of the time it
shows up. i've been trying to find a way to format the onprint event in the
detail section but i can only change the font size, bold/itialic, etc.. any
ideas?


Most printers have a setting in the driver that will permit black and
white print. Create another print queue that prints in black and white.

Or, if you prefer, programmatically turn off your conditional formatting.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Mar 27 '06 #3
lyle's comment aside, the problem is that my black and white only printer is
printing the colored controls in shades of grey. this would be the same for
any driver settings or other printer-driven solutions that are possible. i
wanted a solution to turn my conditional formatting off programmatically for
the onprint event. any ideas how?

Randy Harris wrote:
how can i get my report to print all in black when i have a control with
conditional formatting to change the font color about 10% of the time it
shows up. i've been trying to find a way to format the onprint event in the
detail section but i can only change the font size, bold/itialic, etc.. any
ideas?


Most printers have a setting in the driver that will permit black and
white print. Create another print queue that prints in black and white.

Or, if you prefer, programmatically turn off your conditional formatting.


--
Greg

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200603/1
Mar 28 '06 #4
ka******@comcast.net via AccessMonster.com wrote:
lyle's comment aside, the problem is that my black and white only printer is
printing the colored controls in shades of grey. this would be the same for
any driver settings or other printer-driven solutions that are possible. i
wanted a solution to turn my conditional formatting off programmatically for
the onprint event. any ideas how?

Randy Harris wrote:
how can i get my report to print all in black when i have a control with
conditional formatting to change the font color about 10% of the time it
shows up. i've been trying to find a way to format the onprint event in the
detail section but i can only change the font size, bold/itialic, etc.. any
ideas?

Most printers have a setting in the driver that will permit black and
white print. Create another print queue that prints in black and white.

Or, if you prefer, programmatically turn off your conditional formatting.


I haven't played with the exact syntax, but you should be able to use
something like:

Me!tbxText1.FormatConditions.Enabled = False

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Mar 28 '06 #5
good idea but it didn't work. i had this as my code:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.txtboxstocknumber.FormatConditions(1).ForeColor = RGB(0, 0, 0)
Me.txtboxstocknumber.FormatConditions(2).ForeColor = RGB(0, 0, 0)
Me.txtboxstocknumber.FormatConditions(3).ForeColor = RGB(0, 0, 0)
End Sub

and i got an error that basically said that i can't set conditional formats
in print preview mode or once printing had started. any other direction you
can think to go in?

Randy Harris wrote:
lyle's comment aside, the problem is that my black and white only printer is
printing the colored controls in shades of grey. this would be the same for

[quoted text clipped - 11 lines]

Or, if you prefer, programmatically turn off your conditional formatting.


I haven't played with the exact syntax, but you should be able to use
something like:

Me!tbxText1.FormatConditions.Enabled = False


--
Greg

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200603/1
Mar 29 '06 #6

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

Similar topics

2
by: Xiphias | last post by:
Hi, Im trying to change the color of a text box on a report that im printing from a form. On the form I got a check box that has to tricker the color of that textbox on the printed report....
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
0
by: Nigel | last post by:
I successfully create a .NET Component (Visual Basic .NET) that would print, unfortunately when used within a web browser it appears that .NET security doesn't allow you to run code that interacts...
0
by: Nigel | last post by:
The Visual Basic .NET Step by Step book has the following code and text: Imports System.Drawing.Printing Private Sub PrintText(ByVal sender As Object, ByVal ev As PrintPageEventArgs)...
1
by: Dreamtime | last post by:
Hi I am using Visual Studio 2005 and the bundled Crystal Reports (previously I used .net 2003 and bundled Crystal Reports for 2 years - same issues!) I have a report which is displayed in the...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
3
by: Wayne | last post by:
I'm reasonably sure that this issue isn't related to the database as such. I have an Access 2003 report with a couple of coloured logos on it that was printing fine, but now the logos only print in...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
3
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
Is there a way to force printing in black and white programatically?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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...
0
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...
0
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,...

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.