Thread: Printing

  1. #1
    John Kull
    Guest

    Printing

    How do i print the information which is entered in Edit Boxes Using MFC?

    Thanks

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    This is not a question that can be answered in a few lines.

    Do a search here for info and try MSDN.

    If you have specific problems please ask again.

    Look into EnumPrinters(), HDC's, Common Dialogs (printer/print) ect
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    >>This is not a question that can be answered in a few lines.

    Got that right! Man, I wish that there was a 'PrintOnePage(hwnd_edit);' function or something...

    Printing a page is just like using GDI to output text, lines, etc but with the chance of runing out of room on the page, running out of sheets of paper to pring on and a whole lot more of nasties :P

    Advice: buy a good programming book
    Even better advice: buy several good programming books
    Alternative advice: Borrow a good programming book from the library
    Even better alternative advice: Borrow several good programming books from the library

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    A simple way is to use commas ',' to seperate the strings from the edits and write to a text file.

    Use the extension .csv and then use Excel to print it.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

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, 08:10 PM
  4. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 04: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