简体   繁体   English

如何使用水晶报表打印支票?

[英]How to print cheque using crystal report?

I got a problem here. 我在这里遇到问题。 I am printing continuous cheque using crystal report. 我正在使用Crystal Report打印连续检查。 My cheque Height is 8.9 cm and Width is 27.9 cm. 我的检查高度是8.9厘米,宽度是27.9厘米。 When I am printing using crystal report then it exports nicely to PDF but when I want to print it on the cheque it is printing on different position. 当我使用Crystal Report进行打印时,它可以很好地导出为PDF,但是当我想在支票上打印时,它将在不同位置打印。 The printer is a Dot Matrix BP-9000 E Aui Printer. 该打印机是Dot Matrix BP-9000 E Aui打印机。 Is there anyone who can suggest me what I can do to print this content in the proper place? 有谁能建议我该怎么做才能在适当的位置打印此内容?

Thanks in advance. 提前致谢。

Try setting the page margins before printing. 在打印之前,请尝试设置页边距。

        CrystalDecisions.Shared.PageMargins PageMargins1 = new CrystalDecisions.Shared.PageMargins
        {
            topMargin = 250,
            leftMargin = 250,
            rightMargin = 250,
            bottomMargin = 250
        };

        Report1.PrintOptions.ApplyPageMargins(PageMargins1);

The above values are arbitrary. 上述值是任意的。 Try modifying them so you can get the desired result for your printer. 尝试修改它们,以便为打印机获得所需的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM