Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Problem printing labels on matrix printer

edited April 2004 in General
Hi,

I am using D7 Ent with Rep.Builder 7.03.

I made labels ( w = 149 x h = 48,8 mm) to print on dot matrix.

Space between labels is 3 mm.

I set printer to EPSON 24 PIN COMPATIBLE, form CUSTO, size w = 149 x h =
51,8 mm.

The labels are printing ok, but after printing 6 labels, it's look like next
page and start printing at different position
on label.

What am I doing wrong?

Best Regards

Sergio Melchiori

Comments

  • edited April 2004
    Hi Sergio,

    Printing to Dot Matrix printers can be very tricky. Be sure you have the
    correct page size defined in your printersetup. Also be sure you have the
    latest printer driver installed for your printer.

    -----------------------------------------------
    Article: Printing to Dot Matrix Printers
    -----------------------------------------------

    Dot matrix printers are natively line and character based. Most dot
    matrix printers can emulate graphical (i.e. pixel based) printing, but
    there is additional overhead which degrades printing speed.

    Some options for maximizing performance:

    1. Use native printer fonts.

    Each dot matrix printer normally has some built-in fonts. You can choose
    these fonts when using the ReportBuilder Report Designer. Choose File |
    PageSetup and select the dot matrix printer (or optionally use the
    object inspector to set Report.Printersetup.PrinterName). The fonts
    displayed in Report Designer's font drop down list located on the format
    toolbar will display the printer native fonts (indicated by a special
    printer icon next to the font name).

    2. Vertically position and size objects in 1/6 inch increments.

    A standard dot matrix printer can print 66 lines per 11 inch portrait
    page. This translates to a line height of 1/6 inch. Therefore the height
    of each band should be a multiple of 1/6 as should the size of the
    margins, the vertical position of each object etc.

    3. Keep the layout simple, avoid using graphics of any kind.

    Alternatives to using the dot matrix printer driver:

    1. Use the generic text printer driver.

    When using the generic text printer you will need to use the courier or
    courier new font and apply the layout techniques described above.

    2. Use ReportBuilder's ReportTextFile device output format.

    This ReportTextFile device can exports the report to a .txt file which
    you can then send to the printer. Demo dm0107.pas in the main reports
    demo app shows an example of printing a report to a .txt file and
    previewing the results.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2004
    When cheque printing, we found a problem with the generic text driver on
    Windows 2000/XP. It always sends form feeds even if you ask it not to. The
    only solution we found was to send the data direct to the port and put in
    your own printer control codes etc.

    --
    Andrew Cutforth
    AJC Directory Synchronizer: Directory Compare & Synchronize
    www.ajcsoft.com

This discussion has been closed.