set page layout for report viewer in visual studio 2010

前端 未结 3 1854
既然无缘
既然无缘 2021-02-01 09:04

I again have a little problem. I have used ReportViewer in my Windows Form Application in visual studio 2010. The width of my report id about 7 inches. When i view the report in

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 09:36

    ReportViewer rpt = new ReportViewer();
    rpt.SetPageSettings(new System.Drawing.Printing.PageSettings() { Landscape = true });
    

提交回复
热议问题