Solved

Access 97 report charts duplicate in print preview

Posted on 2004-08-18
5
407 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

778 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