如何在打印首选项中将我的自定义纸张尺寸设置为默认值? [英] How to set my custom paper size to set as default in printing preferences?

查看:604
本文介绍了如何在打印首选项中将我的自定义纸张尺寸设置为默认值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
请帮帮我.

我已经从服务器属性"创建了一个新的纸张设置.

当我预览水晶报表时,它会根据新的纸张设置提供确切的预览,但是当我发送它进行打印时,它将在默认打印机设置下进行打印.

还有一个问题是我的新纸张设置在高级打印"打印首选项中的纸张尺寸中没有显示.

如何在预先打印的首选项中将我创建的客户纸张设置为默认打印纸张尺寸.

Hi all,
please help me.

I have created a new paper setting from "Server Properties".

When I preview crystal report it gives exact preview according to new paper setting but when I send it to print it prints on default printer setting.

There is another problem that my new paper settings does not show in paper size in Advance printing printing preference.

How do I set my customer paper which I have created to be set as default print paper size in advance printing preference options.

推荐答案

您可以尝试使用将自定义纸张尺寸添加到命名打印机 [
You can try using Adding custom paper sizes to named printers[^]


See Here[^].

This should give you all you need to know.

You can select any of the printer preset sizes or define your own.


if (e.Tool.Id == 5010)
            {
                Viewer.Document.Print(false, false, false);
            }




使用此代码在查看器中添加按钮




Add a button in viewer using this code

DataDynamics.ActiveReports.Toolbar.Button _printbtn = new DataDynamics.ActiveReports.Toolbar.Button();

            //Add Save button to the toolbar
            _printbtn = new DataDynamics.ActiveReports.Toolbar.Button();
            _printbtn.ImageIndex = 1;

            _printbtn.Id = 5010;
            _printbtn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon;
            _printbtn.Caption = "Print";
            _printbtn.ToolTip = "Print Document";
            arvReport.Toolbar.Tools.Insert(1, (DataDynamics.ActiveReports.Toolbar.Tool)_printbtn);




在事件处理程序中,如果查看器




In event handler if viewer

if (e.Tool.Id == 5010)
            {
                Viewer.Document.Print(false, false, false);
            }


这篇关于如何在打印首选项中将我的自定义纸张尺寸设置为默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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