在Windows中创建自定义纸张尺寸或表格 [英] Create custom paper sizes or forms in Windows

查看:165
本文介绍了在Windows中创建自定义纸张尺寸或表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 专家,

我已经为打印创建了自定义纸张尺寸,并且已成功创建并列在表单"列表中,但是问题是当我使用以下代码从系统中读取可用的纸张尺寸时,它将不会显示我的自定义尺寸纸张列表框.

获取纸张尺寸的代码:

Hi Expert,

I have created custom paper size for my printing and it is successfully created and listed into Forms list but the Problem is when i read available paper sizes from system using following code then it will not display my custom size paper listbox.

Code to fetch paper size:

System.Drawing.Printing.PrintDocument pd = new System.Drawing.Printing.PrintDocument();
for (int p = 0; p < pd.PrinterSettings.PaperSizes.Count; p++)
{
    //My custom page size (Bill Printing 3.5x3) not display in this Listbox 
    listBox1.Items.Add(pd.PrinterSettings.PaperSizes[p].PaperName);
}



我执行的在Windows打印机上创建自定义纸张尺寸的步骤.

1.单击控制面板
2.单击打印机和传真控制面板图标
3.选择文件",然后选择服务器属性".

在出现的对话框中,选中创建新表单"框.
创建新的页面尺寸为''Bill Printing 3.5x3''
选择英文单位
定义页面尺寸,其长尺寸为width = 3.50in和height = 3.00in.
单击保存表单"按钮.
单击确定按钮.

任何答案将不胜感激!

预先感谢,
Imdadhusen.



Step that i have performed to create custom paper size on windows printer.

1. Click Control Panel
2. Click the Printers and Faxes control panel icon
3. Choose File, then Server Properties.

In the dialog box that appears, check the box for Create a new form.
Created new page size as ''Bill Printing 3.5x3''
Select English units
Define the page size with the long dimension as the width=3.50in and the height=3.00in.
Click the Save Form button.
Click the OK button.

Any answer will be appreciated!

Thanks in advance,
Imdadhusen.

推荐答案

你明白了.

水晶报告:调整纸张大小 [ ^ ]
You got it man.

Crystal report: resizing papersize[^]


这篇关于在Windows中创建自定义纸张尺寸或表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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