Using the New WPF Viewer with SAP Crystal Reports for Visual Studio 2010
page 1 of 3
Published: 21 Sep 2010
In this article, Vince demonstrates the usage of the new WPF Viewer that comes with SAP Crystal Reports for Visual Studio 2010. Vince goes over basic functionalities such as how to create a new solution, how to display data in a DataGrid control using the Entity Framework, how to create a crystal report and display data in it. Throughout the article Vince provides relevant source code examples and screenshots.
by Vince Varallo
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 45118/ 54


One of the new features of SAP Crystal Reports for Visual Studio 2010 is the WPF Viewer. This control makes is easy to integrate your reports into your WPF applications. You still get all the features of the viewer just as if it were a WinForms or ASP.NET application. This article will create a WPF application that uses the Entity Framework to populate a DataGrid control and then also display the data in a Crystal Report.

Before you begin you will need to have installed Visual Studio 2010. Crystal Reports is no longer distributed with Visual Studio and is available as a separate download. You can download Crystal Reports here. You also will need to download the AdventureWorks sample database from here.  Once you've installed the database you will need to create a SQL Login that the WPF application can use to connect to the database. My sample code expects a SQL Login to be called "aspalliance" with the password "aspalliance". The sample code for this application can be downloaded here.

View Entire Article

User Comments

Title: Crystal Report Error   
Name: Allan Proton
Date: 2012-08-13 10:10:33 AM
my problem was resolved

Title: Crystal Report Error   
Name: Selvam
Date: 2012-07-16 11:38:45 PM
Error The tag 'CrystalReportsViewer' does not exist in XML namespace 'clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer'. Line 9 Position 10.
please help me sir
Title: Crystal Report Error   
Name: Selvam
Date: 2012-07-16 11:37:44 PM
Error The tag 'CrystalReportsViewer' does not exist in XML namespace 'clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer'. Line 9 Position 10.
please help me sir
Title: Thank you !!   
Name: Rakesh
Date: 2012-03-16 2:28:21 PM
Thank you for sparing your time for such an incredible post.
Title: Thanks   
Name: Nixon Antony
Date: 2012-03-07 7:19:10 AM
i did all the things you mentioned run fine ,but i didn't got the output.So please help me..what is the error...?
Title: Thanks   
Name: Kishor Suryvanshi
Date: 2011-08-05 1:09:56 AM
Hi, thank you, using solution i got idea and help for my problem in my project. this solution was help full me.

have a great day. :D
Title: Need critical help!!!!   
Name: Abdul Hayee
Date: 2011-05-18 8:20:27 AM
Sir! i've followed all your steps and gets "Object reference not set to an instance of an object." at CrystalReportViewer1.ViewerCore.ReportSource = report.

can you plz help me thanx
Title: Thanks   
Name: Yeison Manco
Date: 2011-02-13 1:18:06 PM
Thx thx thx :D
Title: CrystalReportViewer Not adding in ToolBox   
Name: JasRaj Bishnoi
Date: 2011-02-10 3:01:29 AM
Thank for this post. when i add CrystalReportViewer from choose Items window then Viewer not appear in ToolBox.

Please Reply
Title: how can use it in xbap   
Name: Mahdi
Date: 2010-11-06 3:35:51 AM
Hi, tank you for your solution, but how can we use it in Xbap or in WpfBrowserApplication. I have a problem running Sap in Xbap and unfortunately i catch that app.config error.

I think compiler cant know this code:
supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"

Title: Mr   
Name: Garfield
Date: 2010-11-03 9:09:24 AM
Thank you so much...this was a huge help for me
Title: Crystal Reports in VS v4.0   
Name: Adil
Date: 2010-10-06 3:06:42 AM
Thank..Its Realy good For a Beginner who Wants to Create Report using Crystal Report.Each And Every Necessary Step Has Been Fully Ellaborated . Thanks A lot...

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-06-15 9:53:44 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search