set page layout for report viewer in visual studio 2010

前端 未结 3 1855
既然无缘
既然无缘 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:38

    Use pg.LandScape = true along with you existing,

        pg.Margins.Top = 0;
        pg.Margins.Bottom = 0;
        pg.Margins.Left = 0;
        pg.Margins.Right = 0; 
        pg.LandScape = true
    

提交回复
热议问题