How to directly print rdlc report without showing PrintDialog() in C#?

后端 未结 3 2060
星月不相逢
星月不相逢 2020-12-06 10:38

I have an application where I have to print a RDLC report without showing the printDialog and using the default specified printer defined in the application. Be

3条回答
  •  再見小時候
    2020-12-06 11:15

    public void PrintSales(object sender, RenderingCompleteEventArgs e)
    {
        try
        {
            reportViewerSales.PageSetupDailog();
            reportViewerSales.PrintDialog();
            reportViewerSales.Clear();
            reportViewerSales.LocalReport.ReleaseSandboxAppDomain();
        }
        catch (Exception ex)
        {
        }
    }
    

提交回复
热议问题