Solved

Crystal Reports Viewer does not print what it shows

Posted on 2009-07-10
1
339 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

762 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

19 Experts available now in Live!

Get 1:1 Help Now