Results 1 to 20 of 20

Thread: Print barcode on Datareport

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    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

  2. #2
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,440

    Re: Print barcode on Datareport

    Quote Originally Posted by samer22 View Post
    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    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

  4. #4
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,440

    Re: Print barcode on Datareport

    Quote Originally Posted by samer22 View Post
    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

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    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

  6. #6
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,440

    Re: Print barcode on Datareport

    Quote Originally Posted by samer22 View Post
    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

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    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

  8. #8
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,440

    Re: Print barcode on Datareport

    Quote Originally Posted by samer22 View Post
    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

  9. #9
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    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.

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    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

  11. #11
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,440

    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

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    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.

  13. #13
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    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.

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    Re: Print barcode on Datareport

    DataMiser
    very pertinent comments
    thank you very much

  15. #15

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    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

  16. #16

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2013
    Posts
    783

    Re: Print barcode on Datareport

    Any comment Mr DataMiser?

  17. #17
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    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.

  18. #18
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,440

    Re: Print barcode on Datareport

    Quote Originally Posted by DataMiser View Post
    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

  19. #19
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: Print barcode on Datareport

    Quote Originally Posted by Zvoni View Post
    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.

  20. #20
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,440

    Re: Print barcode on Datareport

    Quote Originally Posted by DataMiser View Post
    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
  •  



Click Here to Expand Forum to Full Width