Solved

Crystal Reports 11 print from preview has different information

Posted on 2015-02-09
15
93 Views
Last Modified: 2015-02-11
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
0
Comment
Question by:dbakker
  • 7
  • 7
15 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Is there a parameter that controls the date range?

mlmcc
0
 

Author Comment

by:dbakker
Comment Utility
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
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
0
 

Author Comment

by:dbakker
Comment Utility
Yes it still changes the date range after i hit the refresh and then print
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
I can't think of any reason it would do that.

Can you upload the report file?

mlmcc
0
 

Author Comment

by:dbakker
Comment Utility
Here is the report file
Lot-Harvest-PGL.rpt
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
I see your start and end date are just fields from a table.  How is the data put into that table.

mlmcc
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:dbakker
Comment Utility
The date entered from a report menu
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
0
 

Author Comment

by:dbakker
Comment Utility
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?
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Are the reports run from the database or is a dataset passed to them?

Does the date range have default values?

mlmcc
0
 

Author Comment

by:dbakker
Comment Utility
The reports are designed with crystal and attached to the program.  The default date is todays date for start and finished
0
 
LVL 34

Expert Comment

by:James0628
Comment Utility
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
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
Comment Utility
When you print does it show different results?
Or is it just the dates at the top are different?

Can we see the code used to display the report and to print it?
You may need to handle a CALLBACK when the report is printed from preview.  That may be what is causing the issue.  I know if there are parameters for the report then the callback has to be handled properly to maintain the parameter values.

mlmcc
0
 

Author Comment

by:dbakker
Comment Utility
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.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

15 Experts available now in Live!

Get 1:1 Help Now