Printing

This is a discussion on Printing within the C Programming forums, part of the General Programming Boards category; Hi , i am using the line fprintf(printer,"%c",newpage); to form feed after printing out my pages, this works fine no ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    11

    Printing

    Hi , i am using the line

    fprintf(printer,"%c",newpage);

    to form feed after printing out my pages, this works fine no problem on most printers including lasers networked or stand alone, however on HP deskjets standalone printers although the page prints and form feeds no problem, the form feed warning light comes on after printing is complete.

    This resets when the nest job goes to the printer and subsequent print runs are not affected, so obviously it probably just needs an additional small command to reset it.

    The work i have done here is appreciated and i don't want to leave them with flashing printer lights, neither do i want to start using a load of unnecessary code , so if someome can give me a pointer it will be greatly appreciated.

    Thanks

    fred

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    You could try
    fflush ( printer );
    and see if that does the trick. Hopefully it would cause a form feed and turn off the light.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Code:
    fprintf(printer,"/f");
    /f is form feed

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    247
    Hi folks,
    a little help needed. I would like to use a hp printer to view the result of a project I am working on at the moment. I have the access codes, reset, landscape, condensed, bold underline ect, but have tried in vain to implement these within my code. Any pointers would be greatfully appreciated.
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 01:13 AM
  2. generic printing preferences dialog box
    By stanlvw in forum Windows Programming
    Replies: 8
    Last Post: 06-27-2008, 02:20 AM
  3. printing data to a file
    By coralreef in forum C Programming
    Replies: 3
    Last Post: 11-02-2006, 07:10 PM
  4. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 03:46 AM
  5. Printing
    By Dual-Catfish in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-25-2002, 08:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21