Mail Archives: djgpp/1999/12/02/15:25:07
Can anyone enlighten me on the escape code to set the printer to
lanscape mode???
Thanks, Chris
In article <qWE04.972$NW1 DOT 34504 AT dfiatx1-snr1 DOT gtei DOT net>,
"Damian Yerrick" <NOSP AT Musenet@pineight.8m.com> wrote:
>
> "Michel Chassey" <michelc AT primus DOT ca> wrote:
> > Hello everyone,
> > I invoke gcc : gcc -o f.exe f.c (for testing)
> > Here is the f.c listing :
> > #include <stdio.h>
> > int main( void )
> > {
> > fprintf ( stdprn, "Hello World" );
> > return( 1 );
> > }
> > The printer goes though the motion of printing then hangs. Lights
blink
> but
> > no printing:
> > result blank page.
>
> Change the fprintf() statement to
> fprintf(stdprn, "Hello World\n\x0c");
> This inserts a newline (\n) and a formfeed (\x0c), telling the
> printer to kick out the paper.
>
> And
> return 1;
> in main() generally means that the program ran into
> error type 1, however you define that.
> If you want to say "no error," say
> return 0;
>
> Damian Yerrick
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -