Author Topic: LPT performance issues.  (Read 1872 times)


  • Jr. Member
  • **
  • Posts: 68
    • View Profile
LPT performance issues.
« on: March 08, 2010, 10:36:02 am »

I've been using the LPT port component from 8.22 for some time for sending data to a ticket printer as a string but I have recently noticed some
performance issues when sending the data to the printer.

To compare, I created a small text file which contains data for 10 tickets and send it to the LPT port via a DOS command
e.g. TYPE PrnData.txt > LPT1

Each ticket takes less than one second each to print.

I then created a very simple test app which simply sends the data as a string to the nrLPT port e.g

   if not fLPT1.Active then
      fLPT1.LptPortNo := 1;
      fLPT1.LptIOBase := StrToInt('$' + edtPortAddr.Text);

      fLPT1.Active := True;

    fLPT1.SendString(Ticket); //Ticket is a string containing the ticket data for all 10 tickets..

when printing, each ticket takes over 4 seconds to print :(  Is there any way I can speed this up as this is far to slow to be usable for us.


Chris Hedges,

« Last Edit: March 08, 2010, 01:02:30 pm by chedges »