A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Suppress printing



 
 
Thread Tools Display Modes
  #1  
Old January 17th, 2009, 06:33 AM posted to microsoft.public.access.reports
Glynn
external usenet poster
 
Posts: 33
Default Suppress printing

In my report, I give the User instructions as to how to enlarge or reduce the
size of the report and how to exit the report - BUT - I do not want these
texts to appear when the report is printed.

How can I suppress these text boxes in the Footer section, when printing the
report ?

Appreciate any help
--
Glynn
  #2  
Old January 17th, 2009, 04:38 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Suppress printing

Are you allowing your users to go into the design view of the reports to make
modifications? While I don't think this is a good idea, you could set the
instructions to Visible: No. They will still show in design view.
--
Duane Hookom
Microsoft Access MVP


"Glynn" wrote:

In my report, I give the User instructions as to how to enlarge or reduce the
size of the report and how to exit the report - BUT - I do not want these
texts to appear when the report is printed.

How can I suppress these text boxes in the Footer section, when printing the
report ?

Appreciate any help
--
Glynn

  #3  
Old January 17th, 2009, 09:55 PM posted to microsoft.public.access.reports
fredg
external usenet poster
 
Posts: 4,386
Default Suppress printing

On Fri, 16 Jan 2009 22:33:01 -0800, Glynn wrote:

In my report, I give the User instructions as to how to enlarge or reduce the
size of the report and how to exit the report - BUT - I do not want these
texts to appear when the report is printed.

How can I suppress these text boxes in the Footer section, when printing the
report ?

Appreciate any help


You can take advantage of the fact that the Report Activate only fires
when the report is previewed to determine if it is being printed.

Let's assume the label you wish to hide is named "lblDontShow".
Code the report's events as follows:

Comment out (or uncomment) the proper intPreview lines depending upon
whether or not you have a control on the report computing [Pages].

Option Compare Database
Option Explicit
Dim intPreview As Integer

Private Sub PageFooter_Format(Cancel As Integer, FormatCount As
Integer)
If intPreview = 1 Then ' Pages is used
' If intPreview -1 Then ' Pages not used
Me.[lblDontShow].Visible = False
Else
Me.[lblDontShow].Visible = True
End If
End Sub
--------------------------
Private Sub Report_Activate()
intPreview = -2
End Sub
---------------------------
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As
Integer)
intPreview = intPreview + 1
End Sub




--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.