Board index » delphi » Character String 27 and Printer Problem

Character String 27 and Printer Problem

I'd like to send my force my printer to start a new page. Instead  hes
just printing the command wich means he is not accepting character
String 27.
Anyone out there with a solution.
Thomas

 

Re:Character String 27 and Printer Problem


I'm not sure what esacape sequence you are trying to use.  I generally send
an ASCII 12 character which is a form feed character on most printers.  In
Delphi you can get this character using CHR(12).

Hope this helps.

Thomas Simoneit <106565....@compuserve.com> wrote in article
<32e660b2.7593...@news.compuserve.com>...

Quote
> I'd like to send my force my printer to start a new page. Instead  hes
> just printing the command wich means he is not accepting character
> String 27.
> Anyone out there with a solution.
> Thomas

Re:Character String 27 and Printer Problem


Quote
Thomas Simoneit wrote:

> I'd like to send my force my printer to start a new page. Instead  hes
> just printing the command wich means he is not accepting character
> String 27.

Try sending ASCII #12.  That's the FormFeed character, not #27.

Re:Character String 27 and Printer Problem


Quote
Thomas Simoneit wrote:

> I'd like to send my force my printer to start a new page. Instead  hes
> just printing the command wich means he is not accepting character
> String 27.
> Anyone out there with a solution.
> Thomas

Thomas,

Don't try to use the escape sequences, just use the NewPage method of
the TPRinter object. Escape sequences are printer dependent anyway.

Other Threads