如题

解决方案 »

  1.   

    不好意思,没看清楚标题,我以为是普通的WebForm打印。
      

  2.   

    RjZsrCR crp = new RjZsrCR();
    crp.SetDataSource(m_ds);
    cry.ReportSource = crp;
    PageMargins margins = crp.PrintOptions.PageMargins;
    crp.PrintOptions.PrinterName = "Epson LQ-300K";
    crp.PrintOptions.ApplyPageMargins(margins);
    crp.PrintToPrinter(1, false, 0, 0);
    这样写法应该可以实现但为何运行时提示“缺少参数”,编译无错
      

  3.   

    crp.Print() 好象有这个方法,以前做过跟你一样的 这个方法直接就能把设计好的打印出来.