如何在Crystal Report中根据我的选择设置页面 [英] How Do I Set Up A Page As Per My Choice In Crystal Report

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

问题描述

你好....我想要打印一个6英寸(horizental)8.5英寸(垂直)的页面。我已经设置了这个尺寸,并尝试在A5和A4尺寸的页面上打印,但输出打印是不是我的期望。出局打印出乎意​​料地更大,并打印出页面。



之后我选择了设置为A5的页面......现在我的问题解决了......



但我仍然想知道如何按照我的愿望打印任何尺寸的页面。



我正在使用visual studio 10和vb.net crystal13

hello....i want to print a page sized 6 inch(horizental) 8.5 inch(vertical).i have set up this size and try to print it in a A5 and A4 size page but the out put print is not as per my expectation.the out put print is unexpectedly larger and the print out of the page as well.

after that i have choose the page set up as A5...and now my problem is solved....

but still i want to know how do i print any size page as per my desire.

i am using visual studio 10 and vb.net crystal report 13

推荐答案

要设置纸张尺寸,请使用 PrintOptions.PaperSize [< a href =http://msdn.microsoft.com/en-us/library/ms226004%28v=vs.80%29.aspxtarget =_ blanktitle =New Window> ^ ] Crystal Report的财产。应该警告您有一个纸张大小枚举 [ ^ ]。这意味着您无法设置任何自定义纸张尺寸,而是来自集合的纸张尺寸。如果您想为打印机设置默认纸张尺寸,请参阅:将自定义纸张尺寸添加到指定的打印机 [ ^ ]。



另外,您可以使用 PrintDocument [ ^ ]类(专为从Windows窗体应用程序打印而设计)。
To set up paper size, use PrintOptions.PaperSize[^] property of Crystal Report. You should be warned that there is a paper size enumeration[^]. It means that you can't set any custom paper size, but the one from collection. If you would like to set up default paper size for printer, please see: Adding custom paper sizes to named printers[^].

Alternativelly, you can print data using PrintDocument[^] class (designed for printing from a Windows Forms application).


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

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