Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to set Page width to 75 mm while printing as printer is Roll printer.how to set the width and height in RDLC report viewer.
my code is below but not able to print.Report is display properly in report viewer but while printing because of page size not able top print.
if (dt != null)
            {
                if (dt.Rows.Count > 0)
                {
                    ds.Tables.Add(dt);
                    ds.Tables[0].TableName = "OrderBill";
                    this.OrderBillBindingSource.DataSource = ds;
                }
            }

            //this.OrderBillBindingSource.DataSource = ds;
            this.reportViewer1.RefreshReport();
            this.reportViewer1.Width = 75;
            this.reportViewer1.RefreshReport();
Posted

See these discussions whether they can help you..
Change-the-size-of-paper-in-rdlc-report.aspx[^]
Reportviewer-paper-size[^]
 
Share this answer
 
Comments
Maciej Los 12-Aug-13 17:35pm    
Worth a 5!
ridoy 13-Aug-13 2:05am    
Thanks Maciej,:)
You can do it directly from the menu bar.
1. Go to the Report Menu.
2. Select Report Properties.
3. Select Layout Tab.
There you can see the Height and Width boxes. Enter the dimensions you want.

Happy coding :)
 
Share this answer
 
Comments
bianders@yahoo.com 17-May-17 11:53am    
setting properties is not coding.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900