Click to See Complete Forum and Search --> : Call Text File & sent it to printer


Nelle
April 19th, 1999, 08:58 PM
Hi ppl,

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

thanks

Hardeep Singh
April 22nd, 1999, 07:01 AM
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.

enapchan
May 23rd, 1999, 08:28 AM
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