Link to home
Start Free TrialLog in
Avatar of dbakker
dbakker

asked on

Crystal Reports 11 print from preview has different information

When I generate a report preview in Crystal Reports 11, it displays all the proper information.  When I click print from the preview, it regenerates the information and grabs a different date range.  So the printed document is different from the information on screen.   If I just straight print its fine.
Capture.JPG
Avatar of Mike McCracken
Mike McCracken

Is there a parameter that controls the date range?

mlmcc
Avatar of dbakker

ASKER

No, I am not using parameters in the report.  Straight fields from the database.  The straight print comes up correctly, the preview comes up correctly on screen.   However when I click the print from the preview screen , that is when it changes
Is the report saved with data?

Try this
Open the report
Click REFRESH
Let the report refresh
Click PRINT

Does it still change the date range?

mlmcc
Avatar of dbakker

ASKER

Yes it still changes the date range after i hit the refresh and then print
I can't think of any reason it would do that.

Can you upload the report file?

mlmcc
Avatar of dbakker

ASKER

Here is the report file
Lot-Harvest-PGL.rpt
I see your start and end date are just fields from a table.  How is the data put into that table.

mlmcc
Avatar of dbakker

ASKER

The date entered from a report menu
What report menu?

I thought you were running this from the Crystal designer?

If this is actually from code then any chance the code is changing that table during preview?

mlmcc
Avatar of dbakker

ASKER

I sent this to the programmers and the reply i got back is

There’s no logic that changes anything in the report based on preview or print though. The dates simply get pulled from the form and set in the report’s dataset.

Is there a setting somewhere in the crystal report that is doing this?
Are the reports run from the database or is a dataset passed to them?

Does the date range have default values?

mlmcc
Avatar of dbakker

ASKER

The reports are designed with crystal and attached to the program.  The default date is todays date for start and finished
FWIW, the date range seems kind of meaningless, in that the report is not using it to select the data.  I don't see any record selection formula at all, so the report is just including everything that's in the tables.  So it seems that the data (dataset) is changing.  How/Why the dataset is changing, I have no idea.

 James
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

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 dbakker

ASKER

Thanks, this wasn't quite the issue , but it was very close enough to help us find it, so I will accept as solution.  The print from preview was calling information a second time and the code our programmer was using had an error in it so it pulled the date plus one day.