如何分配水晶报告的打印机名称和纸张尺寸 [英] How to assign printer name and paper size of crystal Report

查看:108
本文介绍了如何分配水晶报告的打印机名称和纸张尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的计算机系统上安装了多台打印机,因此我需要为Crystal Report分配纸张大小和打印机名称。我已编码它,但它需要默认选择的打印机的纸张大小。因此给出了如下错误: - 页眉或页脚尺寸太大。

下面是代码...



I have more than one printer installed on my computer system so i need to assign paper size and printer name to a Crystal Report. i have coded it but it takes the paper size of default selected printer. thus giving error something like :- Header or footer size is too large.
Below is the code...

rptbill bl = new rptbill();
bl.PrintOptions.PaperSize = PaperSize.PaperA4;
 bl.PrintOptions.PrinterName = "Canon LBP2900";
bl.SetDataSource(ds);
bl.VerifyDatabase();
bl.PrintToPrinter(1, false, 0, 0);

推荐答案

programatically-set-custom-papersize-in.html [ ^ ]



set-custom-paper-size-in-crystal-report-on-web-server-in-asp-net-c / [ ^ ]



custom-printer-and-paper-sized-using-c.html [ ^ ]



检查此链接...希望它会有所帮助..
programatically-set-custom-papersize-in.html[^]

set-custom-paper-size-in-crystal-report-on-web-server-in-asp-net-c/[^]

custom-printer-and-paper-sizes-using-c.html[^]

Check this links...hope it will help..


这篇关于如何分配水晶报告的打印机名称和纸张尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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