Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing In C???? 1

Status
Not open for further replies.

Spannerman

Programmer
Dec 31, 2000
26
0
0
GB
I used to print my C programs on a Dot Matrix printer at work no problem using
if(!biosprint(2,0,0) && 0X90)
printf;("Printer Not Ready");

Otherwise do the business.

This worked fine.However in my new job I now am trying to use a Hewlett Packard
Laserjet 6L.I use the same code and get no error message on screen to say the program can't find it ,but no output either. Can anyone help????
 
Perhaps you have to send an initializion string and/or a termination string before/after sending the printtext.

I had similar problems years ago with my Kyocera Laserprinter.







hnd
hasso55@yahoo.com

 
What is an Initialization String? Could you please give me an example?
Thanks.
 
That is a command sequence that has to be sent to the printer before the text to be printed. it may be dependent on the emulation of the printer .... You have to look in the printer manual what is required for your device.

If you would use this Printer as a windows Printer the driver would do it for you.

hnd
hasso55@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top