473,671 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem for report printing's color

255 Contributor
I have a simple database to print reports in the company, but the default setting for the printer seems different. The printer's default setting will print all pages in black and white, even the reports don't have any colors as well.

When a print button is clicked, the procedure automatically changed to print in color; because a login is required if the quality is set to color in the company printer. I have no idea why only this database will do this itself. The VBA code for the button is as follows:
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdPrint_Click()
  2. On Error GoTo Err_cmdPrint_Click
  3.  
  4.     Dim stDocName As String
  5.  
  6.     If frameStyle.Value = 1 Then
  7.  
  8.         stDocName = "Washout1"
  9.  
  10.     ElseIf frameStyle.Value = 2 Then
  11.  
  12.         stDocName = "Washout"
  13.  
  14.     End If
  15.  
  16.     DoCmd.OpenReport stDocName, acViewNormal
  17.  
  18. Exit_cmdPrint_Click:
  19.     Exit Sub
  20.  
  21. Err_cmdPrint_Click:
  22.     MsgBox Err.Description
  23.     Resume Exit_cmdPrint_Click
  24.  
  25. End Sub
Jul 5 '11 #1
1 1895
colintis
255 Contributor
I had made a bit of work around to print the report in a semi-auto way: open report -> open print dialog -> print -> close report.
Expand|Select|Wrap|Line Numbers
  1.     DoCmd.OpenReport stDocName, acViewPreview
  2.     DoCmd.RunCommand acCmdPrint
  3.     DoCmd.Close acReport, stDocName
From the print dialog, I found the database itself changes the setting print quality from "Black and White" to "Colour", this doesn't happen to any other databases I worked on, only particularly this one.
Jul 5 '11 #2

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

Similar topics

1
4705
by: Maileen | last post by:
Hi, I have 2 questions : 1. - I want to print from my ASP page directly to my network printer. For this i use the following code, but everytime, my document to print is sent to local and physical port LPT1 not to network printer :( '---- to print report on network printer ---
1
17404
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed a database for her which is intended to make things a lot easier; however, I don't have a lot of experience with Access and I find that designing the reports in Access is tedious. I want to be able to print the reports (which are simply based on...
1
1186
by: Deano | last post by:
Hi, I have a report with a subreport. If the subreport has 2 records I get too copies of the report. If it has 3 I get 3 copies. Other than that the report is fine and is producing the data that I want. Is there a setting I can toggle in the reports design view to prevent this, or is it likely to be something more specific to how I have created the report?
1
1970
by: Joe Saliba | last post by:
Hi Folks, am working on an archiving project which they use a little format of paper on which they type on it code and descriptions on each line, and they append on it new lines later on via a typewriter.......... and since we gonna automate this work am facing a slight prob..... So my question is can i from access reports control from which position i want to start printing ???
1
1754
by: Marc | last post by:
Can anyone help me! I'm trying to create an automatic printing process involving an Access database, at present I have 9 different reports set out, what I want is each report to print out using a PDF printer. I'm currently using eDoc PDF printer which will automatically name each printout and place it in a folder, my problem is that every time I print a report using a macro it prints all the records in that report so I end up with one...
2
1718
by: Florifulgurator | last post by:
Hello, trying to clean up other´s mess... I´ve replaced some tables (previously linked to another Access DB) with renamed tables linked to a PostgeSQL DB (removed spaces and Ümlauts in names, secured referential integrity). There´s one (probably more) report that doesn´t get the new name:
1
2572
by: Mina Gohari | last post by:
Hi all I have a problem with printing a report card to laser printer. Everything works properly on ink-jet printer, but when I use laser printer , it's not in predifined format. everything is mix-up. Bitmap bmpi = new Bitmap(1169, 827); Graphics bmp = Graphics.FromImage(bmpi);
5
5470
by: kaosyeti | last post by:
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
10
2846
by: dishal | last post by:
Hi, im having a major problem with printing text on a JFrame. This is a simple whiteboard I'm doing but i just cannot seem to print the text properly. It prints all the alphabets on the same point (all the alphabets are piled on top of each other) instead of printing it incrementally like "this is a random string". Can anyone please help me??? Here's what I have so far: import java.awt.*; import javax.swing.*; import...
1
4488
by: jessicahagg | last post by:
Hi, Goal: Change report body background color to white at runtime before exporting to pfd format. I am reproducing a web report useing .Net reportviewer -- The report is to have the same background color as the web page but a white/no background color when exported to a pdf. - Setting the report page body to transparent does not work. - Using a css on the reportviewer background does not work. How can I access the report's page...
0
8483
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
8401
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
8926
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...
1
8603
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
7444
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
6236
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
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2818
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

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.