I am printing information to a line printer and I want it to stop ejecting to the end of page after each time I send. I want t continuously send without going to a new page. Is there a way to turn this off.

Who is Participating?
mscatenaConnect With a Mentor Commented:
It looks like it?s a setting in your printer.

Another way is to use the ?Generic / Text only? printer and adjust it?s properties so it uses continuous paper without like feed. Then you might eve use BeginDoc/EndDoc.
Hi dvk,

how do you send the lines to the line printer ?

AFAIK, you must send to the Printer an ESC Command..


There could be a couple of things...

Each print job in Windows is a multiple of page by definition. One easy way is not to send "jobs" with Printer.BerinDoc/Printer.EndDoc but rather send the lines directly to the printer, like:

  f : TextFile;
//  AssignFile(f, 'LPT1');
  AssignFile(f, '\\server1\epson810');
  WriteLn(f, Memo1.Text);

You can send a "form feed" - Write(f, #12); - to force a page ejection.

You must also check if the printer is ejecting after the last line. This is controlled by an escape sequence.

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

dvkAuthor Commented:
I've used two methods but didn't get it to stop. I'm currently using this.

Printer.Canvas.Font := Memo1.Font;
for Line := 0 to Memo1.Lines.Count - 1 do
  Writeln(PrintText, Memo1.Lines[Line]);

I agree with mscatena.
Just look in you Printer Manuel for the right ESC Sequenz
Take a look at this link:

Procedure TForm1.Button1Click(Sender: Object);
 Imp: TextFile;
 AssignFile(Imp, 'LPT1');
 Write(Imp, 'Isto vai sair na impressora');
 Write(Imp, #27#69 + 'Bold Printing' + #27#70); {Bold}
 Write(Imp, #15 + 'Condensed mode' + #18); {condensed}
 Write(Imp, #12); { page jump}

One of your questions is reasonably current all others are not and need your attention.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if they are still open in 14 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.

*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link 
POINTS FOR EXPERTS awaiting comments are listed in the link below
Moderators will finalize this question if in @14 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
Thanks everyone.
Moderator @ Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.