Israel

Israel

  • 693
  • 1.3k
  • 219.5k

The name 'ProcessingMode' does not exist in the current...

May 31 2014 10:25 AM
Hi!

I am trying to learn how to use Rdlc report. But when I am running the program I received this message:

The name 'ProcessingMode' does not exist in the current context


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'DataSet1.Employee' table. You can move, or remove it, as needed.
            this.EmployeeTableAdapter.Fill(this.DataSet1.Employee);

            this.reportViewer1.RefreshReport();
        }

        private void btnShowReport_Click(object sender, EventArgs e)
        {
            reportViewer1.ProcessingMode = ProcessingMode.Remote;
            reportViewer1.ServerReport.ReportServerUrl = new Uri(@"http://localhost/reportserver");
            reportViewer1.ServerReport.ReportPath = textBox1.Text;
            reportViewer1.RefreshReport();

        }
    }
}


Answers (1)