Article View: borland.public.cppbuilder.nativeapi
Article #8619Printing to LPT1
From: mike
Date: Sat, 09 Oct 2004 01:07
Date: Sat, 09 Oct 2004 01:07
18 lines
1287 bytes
1287 bytes
I am wondering if someone could tell me why this code does not send anything
to the printer I have attached to the lpt1 port.
char buff[100];
strcpy(buff,"Test");
FILE *ptr = fopen("LPT1","w");
fprintf(ptr,buff);
fclose(ptr);
If I use a windows printer then I can send data to the printer. However this
is a receipt printer and I just want to use the lpt1 port directly. Do I
have to do something to the lpt1 port before I send any data.
Thanks for any information
Mike
Technical Details
Message-ID:
<41673a45$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,facf9d1b2fa86ea6,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "mike" <mfbrowne@earthlink.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Printing to LPT1 Date: Fri, 8 Oct 2004 21:07:29 -0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 68.204.191.80 Message-ID: <41673a45$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097284165 68.204.191.80 (8 Oct 2004 18:09:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail