简体   繁体   中英

Printing Bar-code Crystal Report in C#

I am working on a project that prints bar-code labels using crystal reports in windows forms application by c#.

the problem is what happens when i am trying to print the report:

at the end of every page there are two free labels added to the printed report. i want the report to be printed continuously without any gabs or free labels in between pages.

here is the report page setup and the printer preferences:

页面设置和打印机首选项 打印结果

as the picture shows, my report has 4 bar-codes, and every page in the report has only 2 bar-codes, so i have 2 pages to be printed ... after every page there are the 2 free labels as the picture,

the question is how to prevent that and print the 4 bar-codes without any gabs?

This is due to the crystal report headers and footers.

Open your report and suppress all its headers and footers if you are not using them. (Suppress report header, report footer, page header and page footer)

Hope you have set your printer settings properly.

在此处输入图片说明

[solved]

i keep watching the number of pages at the report and offline printer i found that the number of pages always get duplicated at the printer how ever i changed the height of the report page for example to be 1 cm there always one free page at the end of every page,

离线打印机

so i tried to change the width of the Details Size to be more width and make all margins equal 0

细节尺寸

then it get worked fine as expected

测试结果

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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