CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    15

    Call Text File & sent it to printer

    Hi ppl,

    how do i call a text file and sent it to the printer to print?

    thanks


  2. #2
    Join Date
    May 1999
    Posts
    69

    Re: Call Text File & sent it to printer

    Use ShellExecute, and supply "print" (with quotes) as the second argument and the file name as the third. Look up your documentation for the other args.


  3. #3
    Join Date
    May 1999
    Posts
    4

    Re: Call Text File & sent it to printer

    But, how would you do it to a particular printer that was selected in the CPrintDialog, within an application that uses mfc and prints some data to the printer in the mfc mode (beginprinting, etc..)
    Eli


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured