Solved

Access 97 report charts duplicate in print preview

Posted on 2004-08-18
5
404 Views
Last Modified: 2008-07-03
Hello:

I have an Access 97 database that does some reporting.  This particular report involves charts.

The design of the report has 1 detail section, and within the detail section is a group footer which groups the data.  The data is grouped and displayed on a chart.  When this report printed to the printer, it has four pages of charts.  On pages 2 and 3, two different charts print on each page - one on the top half of the page and a different one on the bottom half of the page. The problem is that when the same pages are viewed in print preview, the same chart at the top of page 2 is duplicated on the bottom half of page 2.  On page 3 in print preview, the same thing occurs...the first chart on page 3 is repeated (duplicated) on the bottom half of page 3. However, when the report prints to the printer, the correct, different charts print.  

I believe the problem lies with the group footer and may have something to do with the OnFormat event. But after spending nearly three days trying everything under the sun to make the correct charts print in both print preview and on the printer, the only resolution I have been able to come up with is to do NewRowOrCol Before Section which forces each chart to print on a separate page.  When each chart prints on its own page, the print preview and hard copy printing are fine.  I would like to see if I can come up with something that would allow two charts to print to a page.  

Any ideas would be appreciated as I am stuck as to what may be causing this.  Thanks.
0
Comment
Question by:azjz
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Eric Flamm
ID: 11834211
First off, Footers don't appear in the Detail section; they are sections unto themselves.

Can you post the code from the Report class module (all events for all sections, unless its really long)? That way, we can see if anything is happening that would cause this result. I can't say I ever did much with charts in Access 97, but they seem to work OK in Access 2000.

-ef
0
 

Author Comment

by:azjz
ID: 11835838
Thanks for the reply.  There is no code in the report module or in any of the controls.
0
 
LVL 8

Accepted Solution

by:
Eric Flamm earned 400 total points
ID: 11836059
I suspect your graph objects are out of sync with your data when displayed in print preview, but get synced when you print them. There's an article on the MIcrosoft KB about this.

http://support.microsoft.com/default.aspx?scid=kb;en-us;318096&Product=acc2002

A Chart on a report displays the incorrect data in Access 2002

-ef
0
 

Author Comment

by:azjz
ID: 11842291
Thanks again for the posting, eflamm.  I used method 2 in the MS knowledge base article, and it worked great.  Thanks for your help.  It was more than worth the points.

Have a great day!
0
 
LVL 8

Expert Comment

by:Eric Flamm
ID: 11844997
You're welcome - good luck!

-ef
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now