Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Reports Viewer does not print what it shows

Posted on 2009-07-10
1
Medium Priority
?
361 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 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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…
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

963 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