Crystal report viewer doesn't appear in toolbox - Visual Studio 2010
Solution 1
Check the target framework of the project you created. By default a new WinForms project gets set to .NET Framework 4 Client Profile. To fix your problem change it to .NET Framework 4.
To do this right-click your project and select Properties. On the Application tab set the Target Framework dropdown.
Solution 2
You need to First Change Your Framwork to .net Framwork 4.0 Link http://www.aspsnippets.com/Articles/Crystal-Report-Viewer-missing-from-ToolBox-in-Visual-Studio-2010.aspx
After the Change Framwork You Need to install Crystal Report Runtime http://scn.sap.com/docs/DOC-7824
You Can Also Create Crystal Report at Runtime...
[In VB.Net]
Imports CrystalDecisions.Windows.Forms
Private Sub CrystalView_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Dim crv As New CrystalReportViewer
With crv
.Dock = DockStyle.Fill
End With
Me.Controls.Add(crv)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
[In C#]
using CrystalDecisions.Windows.Forms;
public class CrystalView
{
private void CrystalView_Load(System.Object sender, System.EventArgs e)
{
try {
CrystalReportViewer crv = new CrystalReportViewer();
crv.Dock = DockStyle.Fill;
crv.EnableDrillDown = false;
this.Controls.Add(crv);
} catch (Exception ex) {
MessageBox.Show(ex.Message,"Hello");
}
}
public CrystalView()
{
Load += CrystalView_Load;
}
}
in Your WinForm Crystal Report Viewer is Visible...
MarcusV
Updated on July 30, 2020Comments
-
MarcusV over 3 years
I have a c# windows form application and after installing SAP Crystal Report for Visual Studio 2010 (http://www.businessobjects.com/jump/xi/crvs2010/default.asp) i cannot see Crystal Report Viewer in the toolbox. What am i doing wrong?