Click here to Skip to main content
15,063,287 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have this code
using System;
using System;
using System.IO;
using System.Data;
using System.Text;
using System.Drawing.Imaging;
using System.Drawing.Printing;
using System.Collections;
using System.Printing;
using System.Printing.Activation;
using System.Windows.Forms;
using System.Web.UI;
using Microsoft.Reporting.WinForms;
using Microsoft.ReportingServices;
using Microsoft.CSharp;
namespace nancymoneytrs
    public partial class AccountDetail : System.Web.UI.Page
        string reportPath = "repTransfer.rdlc";
        protected void Page_Load(object sender, EventArgs e)
        protected void ButtonPrint_Click(object sender, EventArgs e)
            ReportViewer rView = new ReportViewer();
            rView.Dock = DockStyle.Fill;
            rView.LocalReport.ReportPath = reportPath;
        protected void Calendar3_SelectionChanged(object sender, EventArgs e)

my problem is in rView.Print();
or what syntax needed to run

please fix it .


1 solution

Print is an event that occurs when the user prints the report. What do you wish to do? Do you wish to display the report in the report viewer. If so here is a sample[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900