Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Crystal Reports Viewer does not print what it shows

Posted on 2009-07-10
1
Medium Priority
?
354 Views
Last Modified: 2012-05-07
Hi Experts,

    I am pretty new to Crystal Reports.  I have an ASP.NET form that shows a Crystal Reports XI form.  I used an XML file of the actual database schema durring the development of the Report document.  At run time, from code, I pass the report data dynamically in a .NET DataSource to give it the data.  When I execute the code, the viewer shows the correct information in the web site.  However, when I go to print it, it will only print out the original data that I used (weeks ago) to create the report.  That data doesn't even exist in the database anymore.  It's like the report saved the original XML data in itself, and even though I pass it new data, it still uses the old data it got  from the XML file instead of using the datasource I pass it.  But once again, ihe viewer shows the correct data...it just prints the old stuff....I don't get it...  PLEASE HELP!!

Attached is i how I load the report!

Thanks,
axnst2
DataSet invoiceDataDS = DataAccess.GetInvoiceData(12);
 
CrystalReportSource1.ReportDocument.SetDataSource(invoiceDataDS);
 
CrystalReportViewer1.ReportSource = CrystalReportSource1;
 
CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.Pdf;
 
CrystalReportViewer1.DisplayGroupTree = false;
 
mvReport.SetActiveView(vwReport);

Open in new window

0
Comment
Question by:axnst2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
PCIRichard earned 2000 total points
ID: 24824605
The 1st thing you can try is unchecking 'Save Data with Report' on the File menu. This should stop the old data showing.

Let me know if this still doesn't display the new data
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

715 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