1
Answer

Empty Crystal report

minakshi

minakshi

14y
3.4k
1
Hello,

In my current project I am using crystal report for displaying the data. I have used following code for the stated task.

            this.Height = Screen.PrimaryScreen.Bounds.Height;
            this.Width = Screen.PrimaryScreen.Bounds.Width;
            this.Top = 0;
            this.Left = 0;
            crystalReportViewer1.Height = this.Height - 60;
            crystalReportViewer1.Width = this.Width - 5;
            crystalReportViewer1.Top = 10;
            crystalReportViewer1.Left = 0;
          TourCrystalReport tcr = new TourCrystalReport();
                tcr.SetDataSource(_ds);
                crystalReportViewer1.ReportSource = tcr;

But unable to get the data displayed in crystal report. Can anyone help me with this.

Thanks,
Minakshi.
Answers (1)