VC++ pagination @ print time (2)

This is a discussion on VC++ pagination @ print time (2) within the C++ Programming forums, part of the General Programming Boards category; OK, here goes. My prog validates a line sequential file of variable length transaction records, the valid records are written ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    6

    VC++ pagination @ print time (2)

    OK, here goes. My prog validates a line sequential file of variable length transaction records, the valid records are written to file where they are sorted before the report is printed. The number of records is unknown. During printing each page requires the page number adding to a header. How do I do it ???????
    ( This is a console application, the page size will be A4 and the font size........................????????? )
    ps. Thanks Prelude !

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Keep a count of how many lines you have written, and every so often (say 20 lines) write out a form feed and a new page header with page number.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Execution Time - Rijandael encryption
    By gamer4life687 in forum C++ Programming
    Replies: 5
    Last Post: 09-20-2008, 09:25 PM
  2. What is the best way to record a process execution time?
    By hanash in forum Linux Programming
    Replies: 7
    Last Post: 03-15-2006, 06:17 AM
  3. Killing someones grandparents
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 37
    Last Post: 09-07-2003, 07:56 AM
  4. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 04:57 PM
  5. relating date....
    By Prakash in forum C Programming
    Replies: 3
    Last Post: 09-19-2001, 09:08 AM

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