如何在RDLC中设置页面大小 [英] How to Set Page size in RDLC

查看:111
本文介绍了如何在RDLC中设置页面大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在打印时将页面宽度设置为75毫米打印机是滚动打印机。在RDLC报告查看器中设置宽度和高度。

我的代码在下面但无法打印。报告在报告查看器中正确显示,但由于页面大小无法打印而打印。

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();

推荐答案

看看这些讨论是否可以帮到你......

改变尺寸 - paper-in-rdlc-report.aspx [ ^ ]

Reportviewer-paper-size [ ^ ]
See these discussions whether they can help you..
Change-the-size-of-paper-in-rdlc-report.aspx[^]
Reportviewer-paper-size[^]


你可以直接这样做从菜单栏。

1.转到报告菜单。

2.选择报告属性。

3.选择布局选项卡。

在那里你可以看到高度和宽度框。输入你想要的尺寸。



快乐编码:)
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 :)


这篇关于如何在RDLC中设置页面大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆