-
May 12th, 2022, 02:10 AM
#1
Thread Starter
Fanatic Member
Print barcode on Datareport
Hello everyone
I'm printing barcode on Datareport with Canon printer and I can print my barcode succesfully.
However when I sent the application to a friend to print on a label printer, it fails to print.
My question is:
Do I need to specify the papersize?
Do I need to specify the margins?
Or is there an something else I'm missing?
thank you all
-
May 12th, 2022, 02:42 AM
#2
Re: Print barcode on Datareport
Originally Posted by samer22
Do I need to specify the papersize?
Yes
Do I need to specify the margins?
Yes
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
May 12th, 2022, 03:25 AM
#3
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
thank you sir for the quick response
could you please tell me the perfect papersize and margins for printing barcodes
-
May 12th, 2022, 04:00 AM
#4
Re: Print barcode on Datareport
Originally Posted by samer22
thank you sir for the quick response
could you please tell me the perfect papersize and margins for printing barcodes
Uh, No, since i don't have a clue which Label-Printer this buddy of you uses.
At a guess, you print your barcodes on your Canon-Printer in A4/Letter
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
May 12th, 2022, 05:29 AM
#5
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
Personnaly I don't have a label printer but my friend said his label printer is named Smart Pos S58
you print your barcodes on your Canon-Printer in A4/Letter
yes sir in A4 and they are readible by barcode reader
-
May 12th, 2022, 05:32 AM
#6
Re: Print barcode on Datareport
Originally Posted by samer22
Personnaly I don't have a label printer but my friend said his label printer is named Smart Pos S58
yes sir in A4 and they are readible by barcode reader
Well, and there is your problem.....
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
May 12th, 2022, 05:52 AM
#7
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
Well, and there is your problem
Sorry you want to say Where is your problem
If so, I have described my problem in post 1
And regarding you answer I need to know the right papersize and margins for printing in barcode printer
thank you
-
May 12th, 2022, 06:23 AM
#8
Re: Print barcode on Datareport
Originally Posted by samer22
Sorry you want to say Where is your problem
If so, I have described my problem in post 1
And regarding you answer I need to know the right papersize and margins for printing in barcode printer
thank you
Ask your friend or read the manual to the labelprinter
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
May 12th, 2022, 06:47 AM
#9
Re: Print barcode on Datareport
There are many different ways to print barcodes. You have provided no information about how you are doing this so that makes it tough to answer.
It could be that your barcode is to large for the the label size he is using and that will usually result in no print.
It could be that you are using a font which is not on the other system which would result in a print but in some other font, not a barcode.
It could be that you are using something that creates the barcode as an image and the printer on the other system can't do that.
There is no perfect size for a label or a barcode. They can vary through a wide range. The label/paper just has to be large enough for the barcode in question and have a little margin around it. The number of characters in the barcode, the symbology of the barcode and how easily you want it to scan are all factors that determine the size your barcode should be and the label needs to be large enough to hold that barcode. I've used several methods and several different printers on a wide range of label sizes. I prefer to create the labels directly in ZPL II and use a Zebra barcode printer but also often use fonts and add them to data reports.
-
May 12th, 2022, 07:21 AM
#10
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
DataMiser
Good answer thank you
You have provided no information about how you are doing this so that makes it tough to answer
I'm querying for a record in database and retrieving the record's ID in DataReport RptTextbox with 3 of 9 font and others with 128 font.
It could be that you are using a font which is not on the other system
I'm depolying the font with the application
It could be that you are using something that creates the barcode as an image and the printer on the other system can't do that.
The barcode is created in RptTextbox.
thank you
-
May 12th, 2022, 07:55 AM
#11
Re: Print barcode on Datareport
*sigh*
You've created a DataReport
You've created it in A4-Size (297mm x 210mm)
That Label-Printer has smaller "Paper"
Have you ever tried to put 4 Liters of Water into a 0.5 Liter-Bottle?
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
May 12th, 2022, 10:43 AM
#12
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
You've created it in A4-Size (297mm x 210mm)
I have printed on A4 paper not created in A4 size
In DataReport I can't find a way to determine papersize at runtime.
-
May 12th, 2022, 11:07 AM
#13
Re: Print barcode on Datareport
You have to design your report to the size of the paper you want to use. If your printer uses a 4 inch wide paper and your report is more than 4 inches wide including margins you may get nothing printed.
I remember one time I had designed a report for standard A4 size and the default printer got switched to a label printer. When I tried to preview the report it would not appear on screen and just kept adding pages in an endless loop trying to find enough room to print that wider data. The preview window would use the size of the currently selected printer or the default printer if none was selected. Likewise if I tried to print that report to the label printer it would just start spitting out blank labels.
-
May 12th, 2022, 02:49 PM
#14
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
DataMiser
very pertinent comments
thank you very much
-
May 27th, 2022, 05:19 PM
#15
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
If your printer uses a 4 inch wide paper and your report is more than 4 inches wide including margins you may get nothing printed
.
Probably this is the problem because it is throwing an error Report width is larger than paper width
But I wonder how to set the report to be less than 4 inches wide.
I'm using Active Report.
thank you
-
May 28th, 2022, 10:17 AM
#16
Thread Starter
Fanatic Member
Re: Print barcode on Datareport
Any comment Mr DataMiser?
-
Jun 1st, 2022, 06:19 AM
#17
Re: Print barcode on Datareport
It's been a while but I think you just have to pay attention to the ruler at the top and make sure your report does not exceed the required size.
You can set your default printer paper size to the the size you are going to use and then create the report, pretty sure the default layout will match the selected printer.
This is from memory so may or may not be accurate. Been a several years since I needed to design a report for aything other than standard A4 format.
I would look to confirm but I do not have Active Reports installed on this PC at this point. I had another PC with everything on it and the MB went bad, haven't got around to replacing it yet.
-
Jun 1st, 2022, 06:34 AM
#18
Re: Print barcode on Datareport
Originally Posted by DataMiser
It's been a while but I think you just have to pay attention to the ruler at the top and make sure your report does not exceed the required size.
You can set your default printer paper size to the the size you are going to use and then create the report, pretty sure the default layout will match the selected printer.
This is from memory so may or may not be accurate. Been a several years since I needed to design a report for aything other than standard A4 format.
I would look to confirm but I do not have Active Reports installed on this PC at this point. I had another PC with everything on it and the MB went bad, haven't got around to replacing it yet.
I don't think OP uses Active Reports, but this built-in DataReport-Thingy
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
Jun 1st, 2022, 09:31 PM
#19
Re: Print barcode on Datareport
Originally Posted by Zvoni
I don't think OP uses Active Reports, but this built-in DataReport-Thingy
In post 15 he says he is using Active Reports
Thinking about it a little more seems like there may be a little bar that you can drag across to set report width as well.
If you set the smaller printer up as your default and pull the report up in the designer you will likely see a red line running down the page anything to the right of that is to big for the page.
-
Jun 2nd, 2022, 01:26 AM
#20
Re: Print barcode on Datareport
Originally Posted by DataMiser
In post 15 he says he is using Active Reports
Oopps.
Missed that one.
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|