Click here to Skip to main content
14,449,574 members
Rate this:
Please Sign up or sign in to vote.
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
Rate this:
Please Sign up or sign in to vote.

Solution 1

See these discussions whether they can help you..
Change-the-size-of-paper-in-rdlc-report.aspx[^]
Reportviewer-paper-size[^]
   
Comments
Maciej Los 12-Aug-13 17:35pm
   
Worth a 5!
ridoy 13-Aug-13 2:05am
   
Thanks Maciej,:)
Rate this:
Please Sign up or sign in to vote.

Solution 2

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 :)
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100