delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/02/15:25:07

From: cbougher AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fprintf to HP Deskjet
Date: Thu, 02 Dec 1999 16:49:42 GMT
Organization: Deja.com - Before you buy.
Lines: 46
Message-ID: <8267v4$ga3$1@nnrp1.deja.com>
References: <81uq89$n0l$1 AT news2 DOT tor DOT accglobal DOT net> <qWE04.972$NW1 DOT 34504 AT dfiatx1-snr1 DOT gtei DOT net>
NNTP-Posting-Host: 24.88.9.147
X-Article-Creation-Date: Thu Dec 02 16:49:42 1999 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
X-Http-Proxy: 1.1 x29.deja.com:80 (Squid/1.1.22) for client 24.88.9.147
X-MyDeja-Info: XMYDJUIDcbougher
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019