Print RDLC Report from new window without Print Preview using JavaScript in ASP.Net

kankon
 
on Sep 17, 2021 05:21 AM
690 Views

Print RDLC Report without Print Preview

Print DIV content without opening new popup window using JavaScript

the button its popup_window for report viewer so can i use same button?

protected void Buttonva0_Click(object sender, EventArgs e)
{
    Session["Gender"] = RadioButtonList3.SelectedValue;
    //date
    Session["emedate"] = TextBox21.Text;
    Session["emetoday"] = TextBox22.Text;
    //data user
    Session["name"] = txtUsername.Text;
    Session["filenumber"] = filenumber.Text;
    Session["jop"] = joptitel.Text;
    Session["markazel3mel"] = markazel3mel.Text;
    Session["civilid"] = civilid.Text;
    if (Convert.ToInt16(EmergencyMonthPointsTextBox1.Text) > 0)
    {
        EmergencyMonthPointsTextBox1.Text = (Convert.ToInt16(EmergencyMonthPointsTextBox1.Text) - 1).ToString();
        EmergencyTotalPointsTextBox1.Text = (Convert.ToInt16(EmergencyTotalPointsTextBox1.Text) + 1).ToString();
        //total
        Session["EMEmonth0"] = EmergencyMonthPointsTextBox1.Text;
        Session["EMEtotal0"] = EmergencyTotalPointsTextBox1.Text;
    }
 
    string url = "/Admin/eme.aspx";
    string s = "window.open('" + url + "', 'popup_window', 'width=800,height=950,left=100,top=100,resizable=yes');";
    ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);
}

i would like from number (1) print without print preview.

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Sep 17, 2021 05:27 AM
dharmendr
 
on Sep 20, 2021 07:45 AM

You have to use custom button for print.

This is the default functionality of reportviewer. You can't change it.