473,395 Members | 1,471 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.

OutputTo: Output the contents of a form or a report without the footer

I have set up for users to output various forms and reports to either Excel or to PDF format. In both cases, I would like the footer to not be included in the output. The footer area includes the button to output the form or report. Any suggestions?
Mar 8 '12 #1

✓ answered by TheSmileyCoder

Hi Fred

Alot of objects in Access (including atleast the form/report header/footer and textboxes, I haven't really checked further) have a property called "Display When" which can be set to either "Always", "Screen Only", or "Print Only". If you select your footer and set the "Display When" to screen only that should accomplish what you want.

And NeoPa I beg to differ. I can easily think of forms designed in such a way that they could be used as reports. I can also imagine you might want information (tooltip/help) displayed on screen, that you dont want printed.

You could even have red arrows/labels on a report which will show in print preview, but not on the print. Could be information saying "Please Remember to check that XXX is still valid" (Assuming this is some logic that cannot be coded but requires human mind. If it can be coded, it should be.)

The only real area where I tend to agree is that you should not use click events on reports, whether they be tied to a button or a label. If you need thta I would recommend using a custom commandbar/toolbar/rightclick bar (or ribbon for ac2007/2010)

EDIT: Oh, and the Display When property is around in Ac2003 at least. Don't know about earlier versions.

6 1758
NeoPa
32,556 Expert Mod 16PB
Design your report to include only what you want printed/exported.
Mar 8 '12 #2
The footer of the report has buttons to Print, Export and Close. I want to keep them, but I do not want them to Export (or Print) if possible.
Mar 8 '12 #3
NeoPa
32,556 Expert Mod 16PB
That's one of the 'benefits' of the newer versions (2007+) - People get confused if you provide fundamentally illogical features. Interactive features on a report, for example, but also the ability to print forms as if they were reports.

Fundamentally, when you print or export an object it goes out as designed. If you consider a report as something that is printed/exported formatted, and a form as something with which you interact and control your project, you are unlikely to struggle with this concept.

It seems MS don't see it that way, but then they're not around when people go past the very basics into the almost unavoidable problems beyond.

In fairness, I don't believe there is a way to avoid that except maybe by starting with the basic, printable, version and adding the extra bells and whistles in VBA if you don't want to print or export it. Personally, I'd keep it simple.
Mar 8 '12 #4
TheSmileyCoder
2,322 Expert Mod 2GB
Hi Fred

Alot of objects in Access (including atleast the form/report header/footer and textboxes, I haven't really checked further) have a property called "Display When" which can be set to either "Always", "Screen Only", or "Print Only". If you select your footer and set the "Display When" to screen only that should accomplish what you want.

And NeoPa I beg to differ. I can easily think of forms designed in such a way that they could be used as reports. I can also imagine you might want information (tooltip/help) displayed on screen, that you dont want printed.

You could even have red arrows/labels on a report which will show in print preview, but not on the print. Could be information saying "Please Remember to check that XXX is still valid" (Assuming this is some logic that cannot be coded but requires human mind. If it can be coded, it should be.)

The only real area where I tend to agree is that you should not use click events on reports, whether they be tied to a button or a label. If you need thta I would recommend using a custom commandbar/toolbar/rightclick bar (or ribbon for ac2007/2010)

EDIT: Oh, and the Display When property is around in Ac2003 at least. Don't know about earlier versions.
Mar 8 '12 #5
Thank you! Setting the display property on the report footer to Screen Only accomplishes what I want.
Mar 8 '12 #6
NeoPa
32,556 Expert Mod 16PB
I won't say it can never be a benefit Smiley, simply that, on the KISS principle, I recommend avoiding it where possible. Even now you've reminded me of this property (which can clearly be of use in some situations), I would still recommend to use it as little as possible. It's a complication. Someone is likely to waste man-hours later trying to understand why a printed version is different from a version seen on screen.

So, good call for providing the solution (and frankly, if I'd managed to remember it I would have suggested it myself), but I still recommend as little use of it as one can.
Mar 8 '12 #7

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

Similar topics

0
by: David Virgil Hobbs | last post by:
What programming codes will enable me to achieve interaction between vb or c# and HTML form values, without a page reload occurring every time a script is run? At least with javascript and vb...
1
by: Shiz | last post by:
I currently have a Form with Option buttons (to give you the option of sorting by name, or by Field, etc), these are referenced in a module which then formats the report contingent on the option...
1
by: Scott Sabo | last post by:
I have a form & report based on a query which shows details about employees performance reviews (hire date, review date, review submital date, etc). We do 90 day probation reviews as well and I...
0
by: Michael Dekson | last post by:
Access 97. I make a report and I want first to see report and then print report without type CONTROL + P. Can I make some button or can I see print button in toolbar meny. Thanks
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...
2
by: Novice | last post by:
Hi all, as you can see from the subject, I'm try to use an asp:button to create a new browser window and output contents to new window But default if I do the Response.Write("..." The output...
3
by: Mac Campbell | last post by:
For some unknown reason my mdb seemed to drop a module I had named "Utilities". I tried to copy the module back in from a backup copy and got the error message "<<MyProject>> is currently unable to...
0
by: alexalok | last post by:
Hi , I developing an application VS dotnet 2003 using C#. I want to use crystal report without using DSN,so that i can change Database on run time. if anybody can help me. thanx.
0
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have problems printing a .rdlc report directly to the printer. I have created such a report without Datasource, I just fill some parameters in this report. With the ReportViewer I am...
3
by: MyWaterloo | last post by:
I am trying to open my purchase orders form and go to the last record. In the on open command I do: DoCmd.GoToRecord , , acLast Seems straight forward enough...but I keep getting this message...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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?
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:
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...

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.