Return to site

How To Add Crystal Report Viewer In Visual Studio 2013

broken image


  1. Crystal Reports For Visual Studio
  2. How To Add Crystal Report Viewer In Toolbox In Visual Studio 2013
  3. Crystal Reports Viewer For Visual Studio 2015
  4. How To Add Crystal Report Viewer In Visual Studio 2013 64-bit

Add in app.config/web.config fileCrystal Reports for Visual Studio 2013Support for Visual Studio 2013 was added in the Service Pack 9. You need to install Framework 3.5. The Windows 10 OS does not install the 3.5 frameworks. You can do it by selecting 'Turn Windows feature on or off' and choose both options. As Crystal Report is not a default report viewer in Visual Studio 2013, how can I integrate it with Visual Studio 2013? - Thanks Moved by CoolDadTx Friday, August 14, 2015 6:17 PM Wrong forums. Next we are going to add the.rpt(Report)file. The Project solution - Add - New Item -.rpt File. It will open the following window. Select the Report wizard. Specifying the data - Create new connection - OLEDB(ADO) - specify the data provider by following screen. Go next till the last screen. Select the style of report. Choose the same version of crystal report runtime as of Crystal report for visual Studio and if your operating system is 32 bit or 64 bit, choose the version accordingly. Download the zip file of Crystal Reports Runtime from the above given links and unzip and double click on.msi file. Accept the licence agreement and go to next.

Adding Crystal Reports References to Your Project

Updated October 18, 2006
Iron Speed Designer V4.0 and later

When adding a Crystal Reports code customization to your application, you may need to add appropriate DLL references to your project.

Adding Crystal Reports References By Hand

Copy these DLLs into your application's Bin folder.

  • CrystalDecisions.Shared.dll

  • CrystalDecisions.CrystalReports.Engine.dll

  • CrystalDecisions.ReportSoruce.dll

These DLLs are most likely located in:

Crystal Reports XI Release 2 using .NET Framework 2.0 / 3.0:

C:Program FilesBusiness ObjectsCommon3.5manageddotnet2

Crystal Reports included with Visual Studio 2005 using .NET Framework 2.0 / 3.0:

C:Program FilesCommon FilesBusiness Objects2.7Managed

Note that Crystal Decisions changed their name to Business Objects, so their folder names may have changed as well.

Adding Crystal Reports References Using Visual Studio .NET

Step 1: Open your project in Visual Studio .NET. Open the Solution Explorer, expand the Project tag in the tree and select the References tag. Right mouse click and select Add Reference.

Step 2: On the Add Reference dialog, select the CrystalDecisions.CrystalReports.Engine component and press the Select button. This will add the library to the Selected Components area at the bottom of the dialog. Repeat this for the CrystalDecisions.Shared component. Press OK on the dialog to add this to the Visual Studio .NET project.

Step 3: Save the project. You can either build from Visual Studio .NET or you can build from Iron Speed Designer.

Paragon hfs+ for windows crack. To build from Iron Speed Designer, set your application's compiler to Visual Studio .NET via the Application Wizard in Iron Speed Designer.

See Also

Purpose

This document describes how to create a WPF project using the SAP Crystal Reports WPF viewer.

Overview

By the end of this document, the reader should have a simple working WPF application using the SAP Crystal Reports WPF Viewer. The application uses three lines of code to load a saved data report and display the report in the WPF viewer.

The Project Steps

1. Create a new WPF application in Visual Studio .NET

2. Set the project to use the full .NET 4.x Framework.

3. Add the SAP Crystal Reports WPF viewer to the Visual Studio Toolbox.

The viewer should show up in the Visual Studio Toolbox as this icon:

4. Check that the following references are added to the project:

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.Shared.dll

CrystalDecisions.ReportSource.dll

SAPBusinessObjects.WPF.Viewer.dll ( WPFCRViewer.dll )

SAPBusinessObjects.WPF.ViewerShared ( WPFCRViewerShared.dl )

If some of the above references are missing, add these as a new reference

5. Add the following decelerations to the project:

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared

Imports CrystalDecisions.ReportSource

6. Drag the Crystal Reports WPF Viewer from the Toolbox to the form.

Note(!): in VS 2013 you must name the viewer component:


7. Add code that loads a saved data report and displays it in the WPF Viewer to the MainWindow.xaml.VB form:

Dim crReportDocument AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument

crReportDocument.Load('C:testsformulas.rpt')

CrystalReportsViewer1.ViewerCore.ReportSource = crReportDocument

The full project code should look like this:

ClassMainWindow

PublicSubNew()

' This call is required by the designer.

InitializeComponent()

' Add any initialization after the InitializeComponent() call.

Dim crReportDocument AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument crReportDocument.Load('C:testsformulas.rpt')

CrystalReportsViewer1.ViewerCore.ReportSource = crReportDocument

EndSub

EndClass

8. To add database logon information, parameters, etc., follow normal programming procedures for Crystal Reports.

Crystal Reports For Visual Studio

Troubleshooting

1. The MainWindow.xaml file should look like this:

xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'

xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'

xmlns:Viewer='clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer' x:Class='MainWindow'

Height='350' Width='525'>

How To Add Crystal Report Viewer In Toolbox In Visual Studio 2013

2. Make sure you are using Crystal Reports assemblies of version 13.0.2000.0.

3. Make sure to update your install to Service Pack 9. This is an absolute requirement for Visual Studio 2013.

Follow us on Twitter

Related Content

Related Documents

Crystal Reports Viewer For Visual Studio 2015

How To Add Crystal Report Viewer In Visual Studio 2013

xmlns:Viewer='clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer' x:Class='MainWindow'

Height='350' Width='525'>

How To Add Crystal Report Viewer In Toolbox In Visual Studio 2013

2. Make sure you are using Crystal Reports assemblies of version 13.0.2000.0.

3. Make sure to update your install to Service Pack 9. This is an absolute requirement for Visual Studio 2013.

Follow us on Twitter

Related Content

Related Documents

Crystal Reports Viewer For Visual Studio 2015

Related Notes (KBAs)

KBA: 1639004 - Load Assembly error when using ADO .NET datasets and Crystal Reports WPF viewer

KBA: 1528504 - Introduction to the new Crystal Reports for Visual Studio 2010 WPF Viewer

KBA: 1957717 - How to 'clear' the Crystal Reports WPF and viewer

KBA: 1638199 - How to hide the Side Panel of the Crystal Reports WPF viewer?

KBA: 1728139 - Visual Studio .NET WPF viewer displays completely black

How To Add Crystal Report Viewer In Visual Studio 2013 64-bit

KBA: 1836384 - How to automatically adjust the page size of the report of the WPF viewer (fit page)





broken image