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
Solved

Crystal Reports Viewer does not print what it shows

Posted on 2009-07-10
1
343 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
1 Comment
 
LVL 7

Accepted Solution

by:
PCIRichard earned 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 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