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

Get access not to print background color of Form

emandel
65
The background of my form is dark blue,
Is there any way to tell access that when printing it should not print the background or it should change the background?
Jan 1 '07 #1
6 7359
MMcCarthy
14,534 Expert Mod 8TB
The background of my form is dark blue,
Is there any way to tell access that when printing it should not print the background or it should change the background?
At a guess I would say no because Access prints a snapshop. You could always change the background colour before printing and change it back afterwards I suppose.

Mary
Jan 1 '07 #2
emandel
65
I guess I will just change the color permenantly
Jan 2 '07 #3
Killer42
8,435 Expert 8TB
I guess I will just change the color permenantly
Don't give up too quickly. You shouldn't have to compromise your user interface to accommodate printing. Mmccarthy's suggestion should help, and it's not complicated. Well, to be honest, that probably depends on how the printing is initiated.

I would imagine there are numerous ways to resolve your problem, some more complex than others. For excample, you could create a print-only version of the form which is never displayed on-screen. You might evcen do this temporarily at run-time.

Anyway my point is, don't be discouraged just because you can't do it quite as easily as you'd hoped. Look at it as a learning experience. (Besides, it may be as simple as adding two more statements.)
Jan 2 '07 #4
Killer42
8,435 Expert 8TB
Something just came to mind. Keep in mind I'm not expert in this area, but couldn't you do something like using an image for the background (I'm not sure how you'd get it to look right), and set the DisplayWhen property for that image to screen only?

(Hope you saw my earlier message.)
Jan 2 '07 #5
I'm having the opposite problem, I can't seem to print the backgound color!!
How did yoiu do it?
Apr 4 '07 #6
missinglinq
3,532 Expert 2GB
Mary's idea is very simple to implement. If you use the Command Button Wizard to generate a Print Record button, simply modify the code like this:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command5_Click()
  2. On Error GoTo Err_Command5_Click
  3.  
  4.   'Assign the current  background colors to variables
  5.  
  6.   HeaderDefColor = Me.FormHeader.BackColor 
  7.   DetailDefColor = Me.Detail.BackColor
  8.   FooterDefColor = Me.FormFooter.BackColor
  9.  
  10.    'Change color to white
  11.    Me.FormHeader.BackColor = vbWhite 
  12.    Me.Detail.BackColor = vbWhite 
  13.    Me.FormFooter.BackColor = vbWhite
  14.  
  15.    'Print the record
  16.    DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
  17.    DoCmd.PrintOut acSelection
  18.  
  19.    'Change the background color back to the original color
  20.    Me.FormHeader.BackColor =  HeaderDefColor
  21.    Me.Detail.BackColor = DetailDefColor  
  22.    Me.FormFooter.BackColor = FooterDefColor 
  23.  
  24. Exit_Command5_Click:
  25.     Exit Sub
  26. Err_Command5_Click:
  27.     MsgBox Err.Description
  28.     Resume Exit_Command5_Click
  29. End Sub
Apr 4 '07 #7

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

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
2
by: Michelle Marie | last post by:
I have several forms stored in pdf format. Instead of scanning these forms and using them in reports, I would like to create a background in an access report to place the fields but have it...
0
by: ghadley_00 | last post by:
MS Access Create form / report with multiple pages using different background images Hi, Would like to have users fill out a multipage form, and then click a print button, which pulls up the...
6
by: Thelma Lubkin | last post by:
I tried to ask this a few days ago: I was then thinking in terms of using a parameter query--I've since decided that that was not a good approach. I have a form that displays information on...
0
by: John | last post by:
I have a class that creates an AxWebBrowser object in the background, loads some arbitrary html content, then shows the user a print preview. The only problem is, this print preview is a tiny...
2
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002...
4
by: JBiggsCC | last post by:
I have a very simple login page which takes an ID number via a HTML form GET. What is easiest way to check that ID number against an Access DB to see if it exists? I want to redirect with the...
2
by: dmorand | last post by:
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.