减少晶体报告的宽度和高度 [英] reduce the width and height of crystalreport

查看:75
本文介绍了减少晶体报告的宽度和高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,在我最喜欢的网站上解决问题....

我想减少CrystalReportViewer的宽度和高度,使报告尺寸更小,以适应打印纸的质量(条形码塑料纸。

我在Visual Studio 2012(C#.net)工作...非常感谢你的助手。

Hello everyone in my favorite web site to solve problems....
I want to reduce the width and height of CrystalReportViewer to make report to be smaller size to suit the quality of printing paper (bar coded plasting paper).
I am working in Visual Studio 2012 (C#.net)... thank for you so much for your helpers.

推荐答案

我总是喜欢和Crystal Reports打架(不是真的)。​​

我有同样的问题。



问题是烦人的,我在网上找到的解释是这样的:

Crystal Reports在报告中保存了纸张的大小,并且无法通过代码更改。

如果你改变了通过代码的纸张大小,它所做的只是以原始页面大小呈现报告,然后将其拉伸或缩小到所需的页面大小。



解决方案这是为了创建一个打印机(甚至是虚拟打印机)并将其页面大小设置为所需的页面大小。然后将其设置为报告的默认打印机。



希望我帮助。
I always enjoy fighting with Crystal Reports (Not really).
I had the same issue.

The problem is annoying and the explanation I found online is this:
Crystal Reports saves the size of the paper in the report itself and it cannot be changed through code.
If you do change the size of the paper though code, all it does is render the report in the original page size and then stretch or shrink it to the required page size.

The solution for this is to create a printer (even a virtual one) and set it's page size to the required one. Then set it as the default printer for the report.

Hope I helped.


这篇关于减少晶体报告的宽度和高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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