jayaram4urs
Programmer
I installed CRXI R2,I tried to open the report in .NET environment. I got an error message as "Cannot find keycodev2.dll or invalid keycode"
I tried as per the link "Still the same .NET code is working fine in other systems(CRXI R2 not installed)
The following is a .NET code to display the report.
1)Create a new c# windows application.
2)Include a Button, CrystalReportViewer, OpenFileDialog Objects from the toolbox to the form.
3)On the Button click event write the following code the display the report.
OpenFileDialog dlg = new OpenFileDialog();
dlg.Title = "Select Crystal Reports file";
dlg.Filter = "Crystal Reports (*.rpt)|*.rpt|All Files (*.*)|*.*";
dlg.InitialDirectory = "C:\\XML files";
if (dlg.ShowDialog() == DialogResult.OK)
{
this.Cursor = Cursors.WaitCursor;
crystalReportViewer.ReportSource = dlg.FileName;
this.Cursor = Cursors.Default;
}
Thanks in Advance
Jayaram
I tried as per the link "Still the same .NET code is working fine in other systems(CRXI R2 not installed)
The following is a .NET code to display the report.
1)Create a new c# windows application.
2)Include a Button, CrystalReportViewer, OpenFileDialog Objects from the toolbox to the form.
3)On the Button click event write the following code the display the report.
OpenFileDialog dlg = new OpenFileDialog();
dlg.Title = "Select Crystal Reports file";
dlg.Filter = "Crystal Reports (*.rpt)|*.rpt|All Files (*.*)|*.*";
dlg.InitialDirectory = "C:\\XML files";
if (dlg.ShowDialog() == DialogResult.OK)
{
this.Cursor = Cursors.WaitCursor;
crystalReportViewer.ReportSource = dlg.FileName;
this.Cursor = Cursors.Default;
}
Thanks in Advance
Jayaram