Link to home
Start Free TrialLog in
Avatar of azjz
azjz

asked on

Access 97 report charts duplicate in print preview

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.
Avatar of Eric Flamm
Eric Flamm
Flag of United States of America image

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
Avatar of azjz
azjz

ASKER

Thanks for the reply.  There is no code in the report module or in any of the controls.
ASKER CERTIFIED SOLUTION
Avatar of Eric Flamm
Eric Flamm
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of azjz

ASKER

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!
You're welcome - good luck!

-ef